:root {
  color-scheme: light dark;
  --ink: #181722;
  --muted: #666474;
  --paper: #f6f6fa;
  --surface: #ffffff;
  --line: #dedde8;
  --violet: #5b4bff;
  --violet-soft: #eceaff;
  --orange: #ed8a00;
  --rail: #e5e4ea;
  --focus: #1378d4;
  --shadow: 0 18px 50px rgb(34 27 74 / 10%);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a { color: var(--violet); text-underline-offset: 0.18em; }

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

.site-header {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: white;
  background: var(--violet);
}

nav { display: flex; gap: 20px; font-size: 0.92rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

main { width: min(100% - 36px, 880px); margin: 0 auto; }

.hero {
  position: relative;
  overflow: hidden;
  margin: 38px 0 28px;
  padding: clamp(36px, 8vw, 74px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 340px;
  height: 340px;
  border: 62px solid var(--violet-soft);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.04em; }

h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 5.4rem);
  font-weight: 850;
}

.hero-copy,
.lede {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.3vw, 1.25rem);
}

.time-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: clamp(4px, 1vw, 9px);
  margin-top: 38px;
}

.time-rail span { height: 9px; border-radius: 99px; background: var(--rail); }
.time-rail .active { background: var(--orange); }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.panel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.panel-link:hover { border-color: var(--violet); }
.panel-link span:last-child { display: grid; }
.panel-link small { color: var(--muted); }

.panel-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  height: 42px;
  border-radius: 50%;
  color: var(--violet);
  background: var(--violet-soft);
  font-weight: 900;
}

.content-section,
.policy-page article {
  margin: 64px 0;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

h2 { margin: 0 0 24px; font-size: clamp(1.55rem, 4vw, 2.15rem); }

details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 740; }
details p, details ol { margin-bottom: 0; color: var(--muted); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 22px;
  border-radius: 16px;
  color: white;
  background: var(--violet);
  font-weight: 760;
  text-decoration: none;
}

.policy-page { max-width: 820px; }
.policy-page > article:first-child { margin-top: 38px; }
.policy-page article > h1 { font-size: clamp(2.4rem, 7vw, 4.7rem); }
.policy-page article section { margin: 44px 0 0; }
.policy-page article section h2 { margin-bottom: 14px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.policy-page article p, .policy-page article li { color: var(--muted); }
.effective-date { color: var(--muted); font-size: 0.9rem; }
.english-policy { border-top: 5px solid var(--violet); }

footer {
  width: min(100% - 36px, 880px);
  margin: 54px auto 0;
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; padding: 18px 0; }
  nav { flex-direction: column; gap: 4px; text-align: right; }
  .hero { margin-top: 18px; border-radius: 28px; }
  .hero::after { right: -220px; }
  .quick-links { grid-template-columns: 1fr; }
  .content-section, .policy-page article { margin: 36px 0; border-radius: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f3ff;
    --muted: #b9b6ca;
    --paper: #111018;
    --surface: #1a1824;
    --line: #393547;
    --violet: #9d94ff;
    --violet-soft: #302b5e;
    --orange: #ffad37;
    --rail: #3b3845;
    --focus: #6fc1ff;
    --shadow: none;
  }
  .button { color: #151120; background: #a69dff; }
}

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

/* Keep the support hero label above its decorative ring. */
.hero > .eyebrow { position: relative; z-index: 1; }
