:root {
  color-scheme: light;
  --blue: #0b73e8;
  --blue-deep: #0759b7;
  --blue-soft: #eaf3ff;
  --ink: #171c24;
  --muted: #687180;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-subtle: #f6f9fc;
  --shadow: 0 24px 70px rgba(30, 72, 120, 0.1);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 3%, rgba(11, 115, 232, 0.1), transparent 26rem),
    var(--surface-subtle);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(11, 115, 232, 0.2);
}

.brand strong {
  display: block;
  line-height: 1.25;
}

.brand-en {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.language-switcher {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-subtle);
}

.language-switcher button {
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 45, 68, 0.08);
  font-weight: 700;
}

.language-switcher button:focus-visible,
.back-to-top:focus-visible,
.table-of-contents a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(11, 115, 232, 0.35);
  outline-offset: 3px;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: clamp(72px, 10vw, 124px) 0 clamp(48px, 7vw, 76px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: currentColor;
}

h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.effective-date {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 28px;
  padding: 9px 14px;
  border: 1px solid #cfe2fa;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 0.9rem;
}

.effective-date strong {
  padding-left: 12px;
  border-left: 1px solid #bdd7f5;
}

.page-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding-bottom: 100px;
}

.table-of-contents {
  position: sticky;
  top: 104px;
  padding: 6px 0;
}

.toc-title {
  margin: 0 0 13px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-of-contents nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.table-of-contents nav.en {
  display: none;
}

html[lang="en"] .table-of-contents nav.ko {
  display: none;
}

html[lang="en"] .table-of-contents nav.en {
  display: flex;
}

.table-of-contents a {
  padding: 5px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.table-of-contents a:hover,
.table-of-contents a.is-active {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: linear-gradient(90deg, var(--blue-soft), transparent);
}

.terms-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.terms-card section {
  position: relative;
  padding: clamp(34px, 6vw, 58px) clamp(28px, 7vw, 68px);
  border-bottom: 1px solid var(--line);
}

.terms-card section:last-child {
  border-bottom: 0;
}

.section-number {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 14px;
}

.terms-card p,
.terms-card li {
  color: #46505e;
}

.terms-card a {
  color: var(--blue-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.terms-card p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

li {
  margin-bottom: 7px;
  padding-left: 4px;
}

li::marker {
  color: var(--blue);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 750;
}

footer p {
  margin: 0;
}

.back-to-top {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.en {
  display: none;
}

html[lang="en"] .ko,
html[lang="en"] .brand-ko {
  display: none;
}

html[lang="en"] .en,
html[lang="en"] .brand-en {
  display: revert;
}

html[lang="en"] .brand-en {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

html[lang="en"] body {
  word-break: normal;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --blue: #78b4ff;
    --blue-deep: #a8ceff;
    --blue-soft: #16395e;
    --ink: #f4f6f8;
    --muted: #abb4c0;
    --line: #2c3440;
    --surface: #15191f;
    --surface-subtle: #101318;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  }

  body {
    background:
      radial-gradient(circle at 86% 3%, rgba(120, 180, 255, 0.1), transparent 26rem),
      var(--surface-subtle);
  }

  .site-header {
    border-color: rgba(44, 52, 64, 0.82);
    background: rgba(16, 19, 24, 0.84);
  }

  .language-switcher button[aria-pressed="true"] {
    background: #252c35;
  }

  .effective-date {
    border-color: #295988;
  }

  .effective-date strong {
    border-color: #295988;
  }

  .terms-card p,
  .terms-card li {
    color: #c2c9d2;
  }
}

@media (max-width: 820px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }

  .table-of-contents nav.ko,
  html[lang="en"] .table-of-contents nav.en {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-en {
    display: none;
  }

  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding-top: 60px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .table-of-contents nav.ko,
  html[lang="en"] .table-of-contents nav.en {
    grid-template-columns: 1fr;
  }

  .terms-card {
    border-radius: 18px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
