/* 약관·정책·요금제 공통 스타일.
   토큰 값은 포털(index.html)과 같다. 언어/테마 선택도 같은 localStorage 키를 쓰므로
   포털에서 EN·라이트로 보던 사람은 여기서도 그대로 이어진다. */
:root {
  --bg: #08090c; --surface: #111318; --border: #252a36;
  --text: #e8ecf4; --muted: #8b94a8;
  --accent: #4d9cff; --accent-glow: rgba(77,156,255,0.12);
  --green: #34d399; --yellow: #fbbf24;
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --surface: #ffffff; --border: #d0d5df;
  --text: #1a2035; --muted: #5b6478;
  --accent: #2563eb; --accent-glow: rgba(37,99,235,0.10);
  --green: #059669; --yellow: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap;
}
.top .home { font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--text); }
.top .home span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.pref { display: flex; gap: 6px; }
.pref button, .pref a {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 12px;
  text-decoration: none; line-height: 1.6;
}
.pref button:hover, .pref a:hover { color: var(--text); border-color: var(--accent); }
main { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.01em; }
.updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
h2 { font-size: 18px; margin: 36px 0 10px; padding-top: 4px; }
h3 { font-size: 15px; margin: 22px 0 6px; color: var(--muted); }
p, li { color: var(--text); }
ul { padding-left: 20px; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; margin: 20px 0; font-size: 14px;
}
.todo {
  background: var(--surface); border: 1px dashed var(--yellow);
  border-radius: 8px; padding: 14px 16px; margin: 20px 0; font-size: 14px; color: var(--yellow);
}
.foot {
  border-top: 1px solid var(--border); margin-top: 60px; padding: 24px;
  text-align: center; color: var(--muted); font-size: 13px;
}
.foot a { margin: 0 8px; }
[data-lang] { display: none; }
