/* Shared styles for legal pages (privacy.html, terms.html) */
:root {
  --bg: #0a0b0f;
  --panel: #13151d;
  --ink: #f4f5f7;
  --body: #c3c6cf;
  --muted: #6b6f7a;
  --line: rgba(255, 255, 255, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Noto Sans KR', 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 0.95rem;
  word-break: keep-all;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem) 5rem;
}

/* ── Top row ─────────────────────────────────── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4rem;
}
.top .mark { display: inline-flex; }
.top .mark svg { width: 36px; height: 36px; display: block; }
.top nav { display: flex; gap: 1.5rem; }
.top a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.top a:hover, .top a[aria-current="page"] { color: var(--ink); }

/* ── Title ───────────────────────────────────── */
.kicker {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
h1 {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.effective {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

/* ── Body ────────────────────────────────────── */
h2 {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  scroll-margin-top: 2rem;
}
h2:first-of-type { margin-top: 0; }
p { margin-bottom: 1rem; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }
li > ol, li > ul { margin: 0.4rem 0 0.2rem; }
main a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s ease;
}
main a:hover { text-decoration-color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.88rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; background: var(--panel); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ── Footer ──────────────────────────────────── */
.bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bottom nav { display: flex; gap: 1.5rem; }
.bottom a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.bottom a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .top { font-size: 0.62rem; letter-spacing: 0.12em; margin-bottom: 3rem; }
  .top nav { gap: 1rem; }
  .bottom { font-size: 0.6rem; }
}
