:root {
  color-scheme: light dark;
  --background: #f7f5ef;
  --surface: #fffdf8;
  --surface-accent: #edf3ff;
  --text: #20242c;
  --muted: #5c6472;
  --border: #d9d7d0;
  --accent: #285ec7;
  --accent-strong: #174696;
  --header-start: #e8f0ff;
  --header-end: #f7f5ef;
  --shadow: 0 16px 44px rgb(35 46 65 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans", "Noto Sans KR", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--accent-strong);
  border-radius: 0.5rem;
  transform: translateY(-180%);
  transition: transform 120ms ease-out;
}

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

.site-header {
  background: linear-gradient(145deg, var(--header-start), var(--header-end));
  border-bottom: 1px solid var(--border);
}

.header-content,
main,
footer {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

.header-content {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 6vw, 4.5rem);
}

.eyebrow,
.language-label {
  margin: 0 0 0.45rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.24;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.045em;
}

.header-summary {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.language-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: var(--accent-strong);
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(40 94 199 / 25%);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.language-nav a:hover {
  background: white;
  border-color: var(--accent);
}

main {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.policy {
  scroll-margin-top: 1rem;
}

.policy-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  letter-spacing: -0.025em;
}

.effective-date {
  flex: 0 0 auto;
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

section {
  margin-top: 2.4rem;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  letter-spacing: -0.01em;
}

p,
ul {
  margin-block: 0.75rem;
}

ul {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

.summary-card {
  margin-top: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface-accent);
  border: 1px solid rgb(40 94 199 / 18%);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

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

.keep-together {
  white-space: nowrap;
}

.policy-divider {
  height: 1px;
  margin-block: clamp(4rem, 10vw, 7rem);
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

.back-to-top {
  margin-top: 2.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}

footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

@media (max-width: 640px) {
  .header-content,
  main,
  footer {
    width: min(100% - 1.25rem, 920px);
  }

  .policy-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .effective-date {
    margin: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #15181e;
    --surface: #1c2028;
    --surface-accent: #1b2942;
    --text: #f2f4f8;
    --muted: #b8c0cc;
    --border: #343b46;
    --accent: #9cbdff;
    --accent-strong: #bad0ff;
    --header-start: #1c2b46;
    --header-end: #15181e;
    --shadow: 0 16px 44px rgb(0 0 0 / 22%);
  }

  .language-nav a {
    color: var(--text);
    background: rgb(15 22 34 / 70%);
    border-color: rgb(156 189 255 / 35%);
  }

  .language-nav a:hover {
    background: #202b3d;
  }
}

@media print {
  :root {
    --background: white;
    --text: black;
    --muted: #444;
    --border: #bbb;
    --surface-accent: #f4f4f4;
    --accent: #174696;
    --accent-strong: #174696;
  }

  body {
    font-size: 11pt;
  }

  .site-header {
    background: none;
  }

  .header-content {
    padding-block: 1.5rem;
  }

  .language-nav,
  .back-to-top,
  .skip-link {
    display: none;
  }

  .summary-card {
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}

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

  .skip-link {
    transition: none;
  }
}
