:root {
  --bg: #071225;
  --bg-soft: #0c1b35;
  --panel: rgba(13, 30, 58, 0.82);
  --panel-strong: rgba(16, 36, 69, 0.96);
  --text: #eef7ff;
  --muted: #a9bdd2;
  --line: rgba(153, 216, 255, 0.18);
  --cyan: #38d7ff;
  --cyan-strong: #0ab7e5;
  --violet: #9d7cff;
  --success: #69e6b4;
  --warning: #ffd479;
  --danger: #ff9ea8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, rgba(56, 215, 255, 0.20), transparent 32rem),
    radial-gradient(circle at 96% 4%, rgba(157, 124, 255, 0.20), transparent 28rem),
    linear-gradient(180deg, #061022 0%, #08162b 52%, #061020 100%);
  font-family: Inter, Pretendard, "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8cecff; }
button, input, textarea { font: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 9999;
  padding: 10px 14px;
  color: #061020;
  background: #fff;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 32, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 142px; max-width: 100%; height: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 0.93rem; letter-spacing: 0.02em; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: 0.76rem; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.lang-btn {
  min-width: 62px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  color: #04101f;
  background: linear-gradient(135deg, var(--cyan), #90ecff);
  font-weight: 800;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(25, 63, 105, 0.78), rgba(16, 31, 65, 0.85)),
    radial-gradient(circle at 80% 20%, rgba(56, 215, 255, 0.25), transparent 20rem);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -140px;
  border-radius: 50%;
  border: 1px solid rgba(56, 215, 255, 0.25);
  box-shadow: 0 0 80px rgba(56, 215, 255, 0.14);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero .lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #cfe2f5;
  font-size: clamp(1rem, 2vw, 1.17rem);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: #d9ebfb;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.document {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.document h2 {
  margin: 2.5rem 0 0.9rem;
  padding-top: 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.document h2:first-child { margin-top: 0; }
.document h3 {
  margin: 1.7rem 0 0.65rem;
  color: #d9ecff;
  font-size: 1.08rem;
}
.document p { margin: 0.72rem 0; color: #d3e1ef; }
.document ul, .document ol { margin: 0.75rem 0; padding-left: 1.35rem; color: #d3e1ef; }
.document li + li { margin-top: 0.42rem; }
.document strong { color: #fff; }

.toc {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 26, 50, 0.88);
  box-shadow: var(--shadow);
}
.toc h2 { margin: 0 0 12px; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.35rem 0; color: var(--muted); font-size: 0.86rem; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--cyan); }

.notice,
.info-card,
.warning-card,
.success-card {
  margin: 1.25rem 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}
.notice { border-left: 4px solid var(--cyan); }
.warning-card { border-left: 4px solid var(--warning); }
.success-card { border-left: 4px solid var(--success); }
.info-card { border-left: 4px solid var(--violet); }
.notice p:first-child,
.info-card p:first-child,
.warning-card p:first-child,
.success-card p:first-child { margin-top: 0; }
.notice p:last-child,
.info-card p:last-child,
.warning-card p:last-child,
.success-card p:last-child { margin-bottom: 0; }

.data-table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.data-table th,
.data-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.data-table th { color: #fff; background: rgba(56, 215, 255, 0.09); }
.data-table td { color: #d3e1ef; }
.data-table tr:last-child td { border-bottom: 0; }

.contact-card {
  display: grid;
  gap: 7px;
  margin-top: 1.15rem;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 215, 255, 0.08), rgba(157, 124, 255, 0.08));
}
.contact-card p { margin: 0; }

.legal-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.legal-nav a {
  display: block;
  padding: 16px;
  color: #eaf7ff;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.legal-nav a:hover { border-color: rgba(56, 215, 255, 0.45); background: rgba(56, 215, 255, 0.07); }
.legal-nav small { display: block; margin-top: 3px; color: var(--muted); }

.request-form {
  display: grid;
  gap: 17px;
  margin-top: 20px;
}
.form-field { display: grid; gap: 7px; }
.form-field label { font-weight: 700; color: #f2f8ff; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid rgba(169, 189, 210, 0.32);
  border-radius: 12px;
  background: rgba(2, 11, 25, 0.58);
  outline: none;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 215, 255, 0.12); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 6px; }
.form-help { color: var(--muted); font-size: 0.86rem; }
.primary-btn {
  justify-self: start;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #04101f;
  background: linear-gradient(135deg, var(--cyan), #89ebff);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(56, 215, 255, 0.18);
}
.primary-btn:hover { transform: translateY(-1px); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 10, 23, 0.58);
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-links a { color: #c7daec; text-decoration: none; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .toc ol { columns: 2; column-gap: 28px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 68px; }
  .brand img { width: 116px; }
  .brand-copy { display: none; }
  .lang-btn { min-width: 50px; padding: 7px 9px; }
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 26px; }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .document { padding: 22px 18px; }
  .toc ol { columns: 1; }
  .data-table { display: block; overflow-x: auto; white-space: normal; }
  .legal-nav { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media print {
  body { color: #111; background: #fff; }
  .site-header, .toc, .site-footer, .legal-nav, .language-switcher, .primary-btn { display: none !important; }
  .page-shell { width: 100%; padding: 0; }
  .hero, .document { color: #111; background: #fff; box-shadow: none; border: 0; }
  .hero { padding: 0 0 24px; }
  .hero h1, .document h2, .document h3, .document strong { color: #111; }
  .hero .lead, .document p, .document li, .data-table td { color: #222; }
  a { color: #111; text-decoration: underline; }
}
