:root {
  color-scheme: light;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #172033;
  --text-muted: #5a667b;
  --line: #dbe3ef;
  --brand: #1769e0;
  --brand-dark: #0e4ea9;
  --warning-bg: #fff8e6;
  --warning-line: #e7bd4b;
  --warning-text: #624800;
  --radius-large: 24px;
  --radius-medium: 16px;
  --shadow: 0 18px 50px rgb(23 32 51 / 8%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 3px solid rgb(23 105 224 / 30%);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--brand-dark);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 11px;
  place-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.page-shell {
  padding-block: 40px 64px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
}

h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin-block: 0 16px;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 7px;
}

.subtitle {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary,
.notice,
.document,
.policy-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-medium);
}

.summary,
.notice,
.contact-card {
  padding: 20px;
}

.summary {
  margin: 28px 0;
  background: var(--surface-soft);
  border-color: #c8dcfa;
}

.summary h2,
.notice h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.summary > :last-child,
.notice > :last-child,
.contact-card > :last-child {
  margin-bottom: 0;
}

.notice {
  margin: 24px 0;
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: var(--warning-line);
}

.document {
  padding: 24px;
  box-shadow: var(--shadow);
}

.document > h2:first-child {
  margin-top: 0;
}

.toc {
  margin: 24px 0 36px;
  padding: 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ul {
  columns: 1;
  margin-bottom: 0;
}

.table-scroll {
  width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #34425a;
  background: #f5f8fc;
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}

.policy-grid {
  display: grid;
  gap: 16px;
  margin-block: 28px;
}

.policy-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.policy-card:hover {
  color: var(--text);
  border-color: #a8c7f3;
  transform: translateY(-2px);
}

.policy-card h2 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
}

.policy-card p {
  color: var(--text-muted);
}

.policy-card .card-link {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--brand-dark);
  font-weight: 750;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  border-radius: 13px;
  font-size: 1.2rem;
  font-weight: 900;
  place-items: center;
}

.contact-list {
  padding: 0;
  list-style: none;
}

.contact-list strong {
  display: inline-block;
  min-width: 92px;
}

.sources {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer-inner {
  padding-block: 24px 36px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer-inner p + p {
  margin-top: 6px;
}

@media (min-width: 700px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-shell {
    padding-block: 64px 88px;
  }

  .document {
    padding: 44px 52px;
  }

  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc ul {
    columns: 2;
    column-gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
