:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6b68;
  --line: rgba(20, 77, 68, 0.14);
  --brand: #067865;
  --brand-deep: #035c4e;
  --brand-soft: #dcefeb;
  --lavender: #e9e4f7;
  --paper: rgba(255, 255, 255, 0.88);
  --canvas: #f3f5f4;
  --shadow: 0 18px 50px rgba(20, 54, 48, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(205, 190, 240, 0.48), transparent 26rem),
    radial-gradient(circle at 0% 18%, rgba(133, 211, 194, 0.34), transparent 24rem),
    var(--canvas);
  line-height: 1.68;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 252, 251, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.brand-emblem {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 20px rgba(6, 120, 101, 0.22);
  font-weight: 850;
}

.site-nav,
.language-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.site-nav a,
.language-nav a {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:hover,
.language-nav a:hover,
.site-nav a:focus-visible,
.language-nav a:focus-visible {
  background: var(--brand-soft);
  outline: none;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.75fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  min-height: 36rem;
  padding: 5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
}

.lead {
  max-width: 47rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.68rem 1.05rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.flow-card,
.card,
.legal-section,
.language-document {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.flow-card {
  padding: 1.4rem;
  border-radius: 2rem;
}

.flow-row {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.flow-row:last-child {
  border-bottom: 0;
}

.flow-number {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 780;
}

.flow-row:nth-child(3) .flow-number {
  color: #403757;
  background: var(--lavender);
}

.flow-row strong,
.flow-row span {
  display: block;
}

.flow-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 2.5rem 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.35rem;
  border-radius: 1.45rem;
}

.card h3 {
  margin-top: 0;
}

.card p,
.card li {
  color: var(--muted);
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 0.28rem solid var(--brand);
  border-radius: 0.8rem;
  background: var(--brand-soft);
}

.legal-page {
  width: min(900px, calc(100% - 2rem));
  padding: 4rem 0;
}

.legal-hero {
  padding: 2rem 0 1.6rem;
}

.language-nav {
  position: sticky;
  top: 4.2rem;
  z-index: 10;
  margin-bottom: 1.2rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(250, 252, 251, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.language-document {
  margin: 1rem 0 1.6rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  border-radius: 1.6rem;
  scroll-margin-top: 8.5rem;
}

.language-document > h2 {
  margin-top: 0;
  color: var(--brand-deep);
}

.legal-section {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 1.2rem;
  box-shadow: none;
}

.legal-section h3 {
  margin-top: 0;
}

.legal-section ul {
  padding-left: 1.3rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 3rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-nav {
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .language-nav {
    top: 7.4rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
