:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: rgba(17, 23, 36, 0.88);
  --surface-strong: #141b2a;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 205, 96, 0.28);
  --text: #f7f8fb;
  --muted: #a2acbd;
  --muted-strong: #c5ccda;
  --gold: #ffc453;
  --gold-soft: #ffe39e;
  --cyan: #55d9ff;
  --success: #65dfa5;
  --danger: #ff8b95;
  --max: 1120px;
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -4%, rgba(55, 100, 255, 0.19), transparent 34rem),
    radial-gradient(circle at 91% 11%, rgba(255, 169, 46, 0.13), transparent 30rem),
    linear-gradient(150deg, #070910 0%, #0a0f1a 50%, #080b12 100%);
  overflow-x: hidden;
  line-height: 1.68;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}

a:hover {
  color: #a4edff;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(85, 217, 255, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  color: #08101b;
  background: var(--cyan);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 204, 95, 0.48);
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-name {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
}

.page-shell {
  padding: 72px 0 88px;
}

.hero {
  position: relative;
  max-width: 850px;
  margin-bottom: 54px;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 196, 83, 0.07);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 196, 83, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 23px;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.74;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.meta-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.content-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 22, 35, 0.7);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc nav {
  display: grid;
  gap: 3px;
}

.toc a {
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.document {
  min-width: 0;
}

.notice-card,
.support-card,
.document section,
.english-policy,
.status-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(20, 27, 42, 0.9), rgba(11, 16, 27, 0.9));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.16);
}

.notice-card {
  position: relative;
  margin-bottom: 18px;
  padding: 26px 28px;
  border-color: var(--line-strong);
  overflow: hidden;
}

.notice-card::after {
  position: absolute;
  top: -70px;
  right: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 196, 83, 0.07);
  filter: blur(2px);
}

.notice-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-card h2 {
  margin-bottom: 10px;
  font-size: clamp(21px, 4vw, 29px);
  letter-spacing: -0.035em;
}

.notice-card p:last-child,
.document section p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.document section,
.english-policy {
  margin-top: 18px;
  padding: 30px;
  scroll-margin-top: 24px;
}

.document h2 {
  margin-bottom: 15px;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.document h3,
.support-card h3 {
  margin: 25px 0 9px;
  color: var(--gold-soft);
  font-size: 16px;
  letter-spacing: -0.015em;
}

.document p,
.document li,
.support-card p,
.support-card li {
  color: var(--muted-strong);
  font-size: 15px;
}

.document ul,
.document ol,
.support-card ul,
.support-card ol {
  margin: 11px 0 0;
  padding-left: 1.25rem;
}

.document li + li,
.support-card li + li {
  margin-top: 8px;
}

.definition-list {
  display: grid;
  gap: 12px;
  margin: 17px 0 0;
}

.definition-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.definition-item:first-child {
  border-top: 0;
}

.definition-item dt {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.definition-item dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.provider-grid,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.provider,
.quick-link {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: var(--surface-soft);
}

.provider strong,
.quick-link strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.provider span,
.quick-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.provider a,
.quick-link a {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
}

.english-policy {
  border-color: rgba(85, 217, 255, 0.2);
}

.language-marker {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 4px 8px;
  border: 1px solid rgba(85, 217, 255, 0.26);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(85, 217, 255, 0.055);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 25px 27px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 196, 83, 0.055);
}

.action-card h2,
.action-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid rgba(255, 211, 119, 0.65);
  border-radius: 13px;
  color: #191207;
  background: linear-gradient(145deg, #ffe39a, #ffba3d);
  box-shadow: 0 10px 30px rgba(255, 176, 42, 0.13);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  color: #080603;
  filter: brightness(1.06);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 26px;
}

.support-card.full {
  grid-column: 1 / -1;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--gold);
  background: rgba(255, 196, 83, 0.075);
  font-size: 19px;
  font-weight: 900;
}

.support-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border-color: rgba(101, 223, 165, 0.25);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(101, 223, 165, 0.8);
}

.status-card strong {
  font-size: 13px;
}

.status-card span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 0 !important;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 44px;
  padding: 10px 0 10px 53px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  content: counter(step);
  color: var(--gold);
  background: rgba(255, 196, 83, 0.065);
  font-size: 13px;
  font-weight: 850;
}

details {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

details:first-of-type {
  border-top: 0;
}

summary {
  padding: 18px 4px;
  color: var(--text);
  cursor: pointer;
  font-weight: 780;
  list-style-position: outside;
}

details p,
details ul,
details ol {
  margin: -3px 0 19px 4px;
}

.warning {
  margin-top: 15px;
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  border-radius: 6px 12px 12px 6px;
  color: #f1c9cd;
  background: rgba(255, 139, 149, 0.065);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 8, 14, 0.52);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .toc {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell {
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-label {
    display: none;
  }

  .header-nav a {
    padding-inline: 9px;
    font-size: 12px;
  }

  .page-shell {
    padding: 42px 0 62px;
  }

  .hero {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .toc nav,
  .provider-grid,
  .quick-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .document section,
  .english-policy,
  .notice-card,
  .support-card {
    padding: 22px;
    border-radius: 18px;
  }

  .definition-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .action-card,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .action-card .button {
    width: 100%;
  }

  .footer-inner {
    min-height: 0;
    padding: 25px 0;
  }

  .status-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .status-card span {
    width: 100%;
    margin-left: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
