:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f7fb;
  --text: #172033;
  --muted: #4f5d75;
  --border: #c5cede;
  --accent: #174ea6;
  --accent-hover: #0b3d91;
  --focus: #7a4b00;
  --max-width: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101522;
    --surface: #182133;
    --text: #f3f6fc;
    --muted: #c5cde0;
    --border: #526079;
    --accent: #8ab4f8;
    --accent-hover: #b4cefa;
    --focus: #ffd166;
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
}

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .09em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, [tabindex="0"]:focus-visible {
  outline: .2rem solid var(--focus);
  outline-offset: .2rem;
  border-radius: .15rem;
}
.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  padding: .65rem .9rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  flex-wrap: wrap;
}
.site-name { color: var(--text); font-size: 1.2rem; font-weight: 750; text-decoration: none; }
nav { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; }
nav a[aria-current="page"] { font-weight: 750; text-decoration-thickness: .16em; }
main { padding-block: 3rem 4rem; }
.hero { padding-block-end: 1rem; }
.eyebrow { color: var(--muted); font-size: 1rem; font-weight: 700; letter-spacing: .03em; }
h1, h2 { line-height: 1.25; text-wrap: balance; }
h1 { max-width: 22ch; margin: .25rem 0 1rem; font-size: clamp(2.25rem, 7vw, 4.6rem); letter-spacing: -.035em; }
.policy h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); }
h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 4vw, 2rem); }
p, li { max-width: 72ch; }
.lead { max-width: 62ch; color: var(--muted); font-size: clamp(1.2rem, 3vw, 1.45rem); }
.notice {
  max-width: 68rem;
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: .6rem;
  background: var(--surface);
}
.notice p { margin-bottom: 0; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.service-list li { padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); }
.service-list strong, .service-list span { display: block; }
.service-list span { margin-top: .25rem; color: var(--muted); font-size: 1rem; }
.button { display: inline-block; padding: .7rem 1rem; border: 2px solid var(--accent); border-radius: .35rem; font-weight: 700; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: .35rem; }
table { width: 100%; border-collapse: collapse; min-width: 48rem; font-size: 1rem; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
code { padding: .1em .25em; border-radius: .2em; background: var(--surface); font-size: .95em; }
footer { border-top: 1px solid var(--border); color: var(--muted); }
footer .container { padding-block: 1.5rem 2.5rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 38rem) {
  body { font-size: 1.05rem; }
  .site-header .container { align-items: flex-start; flex-direction: column; }
  main { padding-block-start: 2rem; }
}

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