:root {
  --ink: #172b31;
  --muted: #607278;
  --paper: #f6f8f7;
  --white: #fff;
  --line: #dfe7e5;
  --navy: #10262b;
  --navy-2: #183a41;
  --mint: #49d3b4;
  --mint-soft: #e4f8f3;
  --lime: #c8ef71;
  --amber: #ffce68;
  --red: #ef6d6d;
  --shadow: 0 18px 50px rgba(16, 38, 43, .1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.82;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.content-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed; top: -80px; left: 20px; z-index: 999;
  padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(16,38,43,.94); backdrop-filter: blur(16px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: var(--scroll-progress, 0%);
  height: 2px; background: linear-gradient(90deg, var(--mint), var(--lime));
}
.header-inner {
  width: min(1180px, calc(100% - 48px)); height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand {
  color: #fff; font-family: "Outfit","Noto Sans KR",sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap;
}
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; background: var(--lime); border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #d7e3e2; font-size: 14px; font-weight: 600; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--lime); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: #fff; border-radius: 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 25%, rgba(73,211,180,.18), transparent 25%),
    radial-gradient(circle at 15% 90%, rgba(200,239,113,.1), transparent 28%),
    linear-gradient(135deg, #0d2025, #15363d 70%, #10282e);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero-inner {
  position: relative; width: min(980px, calc(100% - 48px)); margin: auto;
  padding: 112px 0 108px; text-align: center;
}
.eyebrow, .section-number {
  margin: 0 0 15px; color: #218b77; font-family: "Outfit",sans-serif;
  font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .16em;
}
.hero .eyebrow { color: var(--lime); }
.hero h1 {
  max-width: 900px; margin: 0 auto; font-size: clamp(36px, 5vw, 64px);
  line-height: 1.24; letter-spacing: -.055em; font-weight: 800;
}
.hero-description {
  max-width: 830px; margin: 28px auto 0; color: #c8d7d6; font-size: 16px; line-height: 1.9;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-actions a {
  min-width: 180px; padding: 14px 22px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 11px; color: #fff; font-weight: 700; transition: .25s;
}
.hero-actions a:first-child { color: var(--navy); background: var(--lime); border-color: var(--lime); }
.hero-actions a:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }

.disclosure { background: var(--navy); color: #d4dfde; border-top: 1px solid rgba(255,255,255,.1); }
.disclosure .content-shell { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding-block: 24px; }
.disclosure strong { color: var(--lime); font-size: 14px; }
.disclosure p { margin: 0; font-size: 13px; line-height: 1.75; }

.page-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 72px; padding-block: 90px 120px; align-items: start; }
.table-of-contents {
  position: sticky; top: 108px; max-height: calc(100vh - 132px); overflow-y: auto;
  padding: 22px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 16px;
}
.table-of-contents strong { display: block; margin-bottom: 14px; font-size: 14px; }
.table-of-contents a {
  display: block; padding: 6px 10px; border-left: 2px solid transparent;
  color: #708084; font-size: 12px; line-height: 1.5; transition: .2s;
}
.table-of-contents a:hover, .table-of-contents a.active { color: #177c69; border-left-color: var(--mint); background: var(--mint-soft); }

.article-content > section { padding: 0 0 88px; margin: 0 0 88px; border-bottom: 1px solid var(--line); }
.article-content > section:last-child { margin-bottom: 0; }
.article-content h2, .summary-section h2 {
  margin: 0 0 30px; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.35; letter-spacing: -.045em;
}
.article-content h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; letter-spacing: -.025em; }
.prose p { margin: 0 0 22px; color: #40565c; }
.prose p:last-child { margin-bottom: 0; }

.insight-box, .alert-box, .check-panel, .review-checklist, .self-check {
  margin-top: 34px; padding: 28px 30px; border: 1px solid #caeae3; border-radius: var(--radius);
  background: var(--mint-soft);
}
.insight-box strong, .alert-box strong { display: block; margin-bottom: 8px; color: #157563; }
.insight-box p, .alert-box p, .self-check p { margin: 0; }
.alert-box { border-color: #f0d59b; background: #fff8e8; }
.alert-box strong { color: #986719; }

.criteria-grid, .risk-types, .evidence-chain, .summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px;
}
.criteria-grid > *, .risk-types > *, .evidence-chain > *, .summary-grid > article {
  padding: 25px; border: 1px solid var(--line); background: #fff; border-radius: 16px; box-shadow: 0 8px 22px rgba(16,38,43,.04);
}
.criteria-grid span, .risk-types span, .evidence-chain span, .summary-grid span {
  display: block; margin-bottom: 12px; color: #1b9b82; font-family: "Outfit",sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .1em;
}
.criteria-grid p, .risk-types p, .evidence-chain p, .summary-grid p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.step-list, .response-steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; margin: 34px 0 0; list-style: none; counter-reset: item;
}
.step-list li, .response-steps li {
  position: relative; padding: 26px 26px 26px 72px; border: 1px solid var(--line); background: #fff; border-radius: 16px;
}
.step-list li::before {
  counter-increment: item; content: counter(item, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px; color: #25a98e; font-family: "Outfit",sans-serif; font-weight: 800;
}
.step-list p, .response-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.response-steps li { padding-left: 26px; }
.response-steps span { display: block; margin-bottom: 10px; color: #1a927b; font-family: "Outfit",sans-serif; font-size: 11px; font-weight: 800; }

.warning-list, .privacy-list, .self-check ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 34px 0 0; list-style: none;
}
.warning-list li, .privacy-list li, .self-check li {
  position: relative; padding: 16px 18px 16px 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 14px;
}
.warning-list li::before, .privacy-list li::before, .self-check li::before {
  content: "✓"; position: absolute; left: 17px; color: #169078; font-weight: 800;
}
.warning-list li::before { content: "!"; color: var(--red); }
.self-check ul { margin: 20px 0; }

.comparison-table, .glossary-table { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
caption { padding: 18px 22px; text-align: left; font-weight: 700; border-bottom: 1px solid var(--line); }
th, td { padding: 17px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14px; }
thead th { color: #fff; background: var(--navy-2); }
tbody th { color: #147963; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }

.review-checklist ol { columns: 2; column-gap: 40px; margin: 18px 0 0; padding-left: 22px; }
.review-checklist li { break-inside: avoid; padding: 5px 0; font-size: 14px; }
.document-info { display: grid; grid-template-columns: repeat(2, 1fr); margin: 34px 0 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.document-info div { display: grid; grid-template-columns: 100px 1fr; padding: 17px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.document-info div:nth-child(odd) { border-right: 1px solid var(--line); }
.document-info dt { font-weight: 700; }
.document-info dd { margin: 0; color: var(--muted); }

details { border-top: 1px solid var(--line); background: #fff; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 6px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: #198b75; font-size: 24px; line-height: 1; transition: .2s; }
details[open] summary span { transform: rotate(45deg); }
details > p { margin: 0 0 24px; padding: 0 34px 0 6px; color: var(--muted); }

.summary-section { padding: 96px 0; color: #fff; background: var(--navy); }
.summary-section .section-number { color: var(--lime); }
.summary-grid { grid-template-columns: repeat(3, 1fr); }
.summary-grid > article { color: var(--ink); }
.directory-grid > a {
  display: flex; min-height: 245px; padding: 25px; flex-direction: column;
  color: var(--ink); border: 1px solid var(--line); background: #fff;
  border-radius: 16px; box-shadow: 0 8px 22px rgba(16,38,43,.04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.directory-grid > a:hover {
  transform: translateY(-4px); border-color: var(--mint);
  box-shadow: 0 18px 36px rgba(0,0,0,.16);
}
.directory-grid > a span {
  display: block; margin-bottom: 12px; color: #1b9b82;
  font: 800 12px "Outfit",sans-serif; letter-spacing: .1em;
}
.directory-grid > a h3 { margin: 0; font-size: 19px; line-height: 1.45; }
.directory-grid > a p { margin: 14px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.directory-grid > a strong { margin-top: auto; color: #147f6a; font-size: 14px; }

.subpage-main { padding: 88px 0 110px; }
.subpage-breadcrumb { margin: 0 0 26px; color: #6b7d81; font-size: 13px; }
.subpage-breadcrumb a { color: #177c69; font-weight: 700; }
.subpage-article {
  max-width: 880px; margin: 0 auto; padding: 54px 58px;
  border: 1px solid var(--line); background: #fff; border-radius: 22px; box-shadow: var(--shadow);
}
.subpage-kicker { margin: 0 0 12px; color: #218b77; font: 800 12px "Outfit",sans-serif; letter-spacing: .16em; }
.subpage-article h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.25; letter-spacing: -.05em; }
.subpage-lead { margin: 22px 0 45px; color: #50666c; font-size: 17px; line-height: 1.9; }
.subpage-section { padding: 34px 0; border-top: 1px solid var(--line); }
.subpage-section h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.45; letter-spacing: -.035em; }
.subpage-section p { margin: 0 0 16px; color: #40565c; }
.subpage-section p:last-child { margin-bottom: 0; }
.subpage-list { margin: 20px 0 0; padding: 0; list-style: none; }
.subpage-list li { position: relative; margin-top: 10px; padding: 15px 18px 15px 43px; background: var(--paper); border-radius: 11px; font-size: 14px; }
.subpage-list li::before { content: "✓"; position: absolute; left: 17px; color: #169078; font-weight: 800; }
.subpage-notice { margin-top: 26px; padding: 22px 24px; color: #40565c; background: #fff8e8; border: 1px solid #f0d59b; border-radius: 14px; }
.subpage-back { display: inline-flex; margin-top: 34px; padding: 12px 18px; color: #fff; background: var(--navy); border-radius: 10px; font-weight: 700; }

.site-footer { padding: 70px 0 26px; color: #b9c8c7; background: #0b1c20; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; padding-bottom: 46px; }
.footer-brand > a { color: #fff; font-family: "Outfit",sans-serif; font-size: 26px; font-weight: 800; }
.footer-brand p { max-width: 580px; margin: 15px 0 0; font-size: 13px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 24px; align-content: start; }
.footer-nav a { color: #dbe5e4; font-size: 13px; }
.footer-nav a:hover { color: var(--lime); }
.footer-notice { padding: 24px; border: 1px solid #244147; border-radius: 14px; }
.footer-notice strong { color: var(--amber); font: 800 11px "Outfit",sans-serif; letter-spacing: .12em; }
.footer-notice p { margin: 8px 0 0; font-size: 12px; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 46px; height: 46px;
  border: 0; border-radius: 50%; color: var(--navy); background: var(--lime); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); cursor: pointer; transition: .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; gap: 34px; }
  .table-of-contents { position: relative; top: auto; max-height: 280px; }
  .criteria-grid, .risk-types, .evidence-chain, .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 12px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 15px; line-height: 1.75; word-break: normal; }
  .content-shell, .header-inner, .hero-inner { width: min(100% - 32px, 1180px); }
  .header-inner { height: 66px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 16px; right: 16px; top: 72px; display: none; padding: 12px;
    flex-direction: column; align-items: stretch; gap: 0; background: #17363d; border: 1px solid #315159;
    border-radius: 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 14px; }
  .hero-inner { padding-block: 82px 76px; text-align: left; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-description { font-size: 14px; }
  .hero-actions { justify-content: flex-start; flex-direction: column; }
  .hero-actions a { text-align: center; }
  .disclosure .content-shell { grid-template-columns: 1fr; gap: 7px; }
  .page-layout { padding-block: 56px 80px; }
  .article-content > section { padding-bottom: 60px; margin-bottom: 60px; }
  .article-content h2, .summary-section h2 { font-size: 29px; }
  .criteria-grid, .risk-types, .evidence-chain, .summary-grid,
  .step-list, .response-steps, .warning-list, .privacy-list, .self-check ul { grid-template-columns: 1fr; }
  .review-checklist ol { columns: 1; }
  .document-info { grid-template-columns: 1fr; }
  .document-info div:nth-child(odd) { border-right: 0; }
  .summary-section { padding-block: 70px; }
  .directory-grid > a { min-height: 220px; }
  .subpage-main { padding: 52px 0 76px; }
  .subpage-article { padding: 36px 24px; border-radius: 16px; }
  .subpage-lead { font-size: 15px; }
  .subpage-section h2 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
