/* 약관 · 개인정보처리방침(지금 판) — 첫 화면(home.css)과 같은 결. 2026-11-02 새 판.
   옛 판 보관 페이지(terms-2026-*.html · privacy-2026-*.html)는 옛 모습(style.css) 그대로 둔다 — 그때 보인 그대로 남긴다. */
:root {
  --bg: #06070b; --panel: #10131a; --card: #12161e; --line: #1c212c; --line2: #2a3140;
  --fg: #eef2f8; --fg2: #b9c2cf; --fg3: #8792a3; --fg4: #626c7c;
  --ac: #4c8dff; --ac2: #8b6bff; --ac3: #35d6c6;
  --sans: 'SUIT Variable', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 100px; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.mono, code { font-family: var(--mono); }
::selection { background: rgba(76, 141, 255, .35); }

.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.glow i:nth-child(1) { width: 40vw; height: 40vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(61,123,255,.5), transparent 65%); }
.glow i:nth-child(2) { width: 34vw; height: 34vw; right: -10vw; top: 30vh; background: radial-gradient(circle, rgba(139,107,255,.35), transparent 65%); animation-delay: -8s; }
@keyframes drift { to { transform: translate(4vw, 6vh) scale(1.1); } }

.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(1180px, calc(100% - 2 * var(--gut)));
  display: flex; align-items: center; gap: 22px; padding: 10px 12px 10px 18px; border-radius: 16px;
  background: rgba(10, 12, 18, .72); border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--fg2); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-cta { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; background: var(--fg); color: #0a0c12; }
@media (max-width: 640px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

.page { position: relative; z-index: 2; width: min(1180px, calc(100% - 2 * var(--gut))); margin: 0 auto; padding: 70px 0 100px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.doc-head { grid-column: 1 / -1; animation: rise 1s var(--ease) both; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--ac); }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.doc-head h1 { margin-top: 16px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.doc-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--fg2); border: 1px solid var(--line2); background: rgba(255,255,255,.02); }
.chip b { color: var(--fg); font-weight: 700; }
.chip a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.lead { margin-top: 26px; max-width: 46em; font-size: 18px; color: var(--fg2); }

/* 한눈에 — 요점 카드 */
.gist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; animation: rise 1s var(--ease) .12s both; }
.gist li { list-style: none; padding: 22px 22px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.gist b { display: block; font-size: 17px; margin-bottom: 6px; }
.gist span { font-size: 14.5px; color: var(--fg2); line-height: 1.65; }
.gist i { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 11px; font-style: normal; font-size: 17px; color: #cfe0ff; background: linear-gradient(145deg, rgba(76,141,255,.28), rgba(139,107,255,.16)); border: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .gist { grid-template-columns: 1fr; } }

/* 차례 */
.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; animation: rise 1s var(--ease) .2s both; }
.toc p { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--fg4); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fg3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-left-color: var(--ac); }
@media (max-width: 960px) { .page { grid-template-columns: 1fr; gap: 30px; } .toc { display: none; } }

/* 무엇이 바뀌나 — 시행 전 비교(2026-11-02 승인 N2) */
.doc section.changes { border: 1px solid rgba(76,141,255,.35); border-radius: 18px; padding: 26px 24px 28px; background: radial-gradient(120% 100% at 0% 0%, rgba(76,141,255,.10), transparent 60%), var(--card); margin-bottom: 10px; }
.doc .changes h2 small { font-size: 13px; font-weight: 500; color: var(--fg3); margin-left: 4px; }
.doc .changes td:nth-child(2) { color: var(--fg4); }

/* 본문 */
.doc { min-width: 0; }
.doc section { padding: 30px 0 34px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.doc section.in { opacity: 1; transform: none; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.doc h2 .n { font-family: var(--mono); font-size: 14px; color: var(--ac); font-weight: 600; }
.doc h3 { margin-top: 22px; font-size: 17px; font-weight: 700; }
.doc p, .doc li { color: var(--fg2); font-size: 16px; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol.list { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.doc li::marker { color: var(--fg4); }
.doc strong { color: var(--fg); }
.doc a { color: #9fc0ff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(159,192,255,.35); }
.doc code { font-size: 13.5px; padding: 1px 6px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); word-break: break-all; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--fg2); }
th { background: var(--panel); color: var(--fg); font-weight: 700; font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
td b { color: var(--fg); }
.note { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(76,141,255,.07); border: 1px solid rgba(76,141,255,.25); font-size: 15px; color: var(--fg2); }

.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 34px var(--gut) 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg4); }
.foot a:hover { color: var(--fg2); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .doc section { opacity: 1; transform: none; }
}
