:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #637087;
  --navy: #13263f;
  --blue: #1475c9;
  --blue-soft: #eaf5ff;
  --line: #dbe4ee;
  --paper: #ffffff;
  --canvas: #f2f6fa;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.75; }
a { color: var(--blue); text-underline-offset: .18em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; color: white; background: var(--navy); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .9rem max(1.25rem, calc((100vw - 1180px) / 2)); color: white; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: white; text-decoration: none; flex: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: #6dc5ff; font-weight: 900; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand small { margin-top: .12rem; color: #b9d8ee; font-size: .75rem; font-weight: 600; }
.languages { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.languages a { padding: .32rem .58rem; color: #d9e7f3; border-radius: .45rem; font-size: .82rem; text-decoration: none; }
.languages a:hover, .languages a:focus-visible { background: rgba(255,255,255,.12); }
.languages a[aria-current="page"] { color: var(--navy); background: #6dc5ff; font-weight: 800; }
.page-shell { width: min(1180px, calc(100% - 2.5rem)); margin: 3rem auto 4rem; display: grid; grid-template-columns: 230px minmax(0, 780px); justify-content: center; gap: 3rem; align-items: start; }
.toc { position: sticky; top: 2rem; padding: .5rem 0; }
.toc > span { display: block; margin-bottom: .8rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .38rem .75rem; color: var(--muted); font-size: .88rem; line-height: 1.45; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--blue); background: var(--blue-soft); }
.policy-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 48px rgba(25,52,84,.08); }
.document-heading { padding: 3rem 3.5rem 2.25rem; color: white; background: linear-gradient(135deg, #13263f, #1c4265); }
.eyebrow { margin: 0 0 .65rem; color: #8dd4ff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -.035em; }
.effective { display: flex; gap: .65rem; margin: 1.35rem 0 0; color: #d2e5f2; font-size: .9rem; }
.effective span { color: #8dd4ff; font-weight: 700; }
.document-body { padding: 2.75rem 3.5rem; }
.document-body h2 { scroll-margin-top: 1.5rem; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.45rem; line-height: 1.35; letter-spacing: -.02em; }
.document-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.document-body h3 { margin: 1.8rem 0 .65rem; color: #27445f; font-size: 1.08rem; }
.document-body p { margin: .7rem 0; }
.document-body ul { margin: .8rem 0 1.2rem; padding-left: 1.3rem; }
.document-body li { margin: .55rem 0; padding-left: .3rem; }
.document-body li::marker { color: var(--blue); }
.external-link { margin: .3rem 0 !important; overflow-wrap: anywhere; }
.back-to-top { display: inline-block; margin: 0 3.5rem 3rem; font-weight: 700; text-decoration: none; }
footer { padding: 1.5rem; color: var(--muted); text-align: center; font-size: .82rem; }
.archive-notice { margin: 0; padding: 1rem 3.5rem; color: #6b4a00; background: #fff6dc; border-bottom: 1px solid #f0dca0; font-weight: 600; }
.previous-versions ul { list-style: none; padding-left: 0; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .languages { justify-content: flex-start; }
  .page-shell { width: min(100% - 1.5rem, 760px); margin-top: 1.5rem; display: block; }
  .toc { display: none; }
  .document-heading, .document-body, .archive-notice { padding-left: 1.4rem; padding-right: 1.4rem; }
  .back-to-top { margin-left: 1.4rem; }
}

@media (max-width: 520px) {
  .site-header { padding: .9rem 1rem; }
  .languages a { padding: .3rem .48rem; }
  .policy-card { border-radius: 13px; }
  .document-heading { padding-top: 2.2rem; padding-bottom: 1.8rem; }
  .document-body { padding-top: 2rem; }
}

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