:root {
  --bg: #0f0f14;
  --surface: #1c1c26;
  --text: #f2f2f5;
  --text-muted: #a8a8b3;
  --accent: #ff4d6d;
  --border: rgba(255, 255, 255, 0.08);
  --warn-bg: rgba(255, 196, 0, 0.1);
  --warn-border: rgba(255, 196, 0, 0.35);
  --warn-text: #ffd873;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fb;
    --surface: #ffffff;
    --text: #17171c;
    --text-muted: #5b5b66;
    --accent: #e0335a;
    --border: rgba(0, 0, 0, 0.08);
    --warn-bg: #fff6e0;
    --warn-border: #f0d27a;
    --warn-text: #7a5b00;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

header.top .brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

header.top .brand span {
  color: var(--accent);
}

nav.legal-switch {
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.legal-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

nav.legal-switch a.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.effective-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin-bottom: 32px;
}

.notice strong {
  color: inherit;
}

h2 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

p, li {
  color: var(--text);
  font-size: 15.5px;
}

p.muted {
  color: var(--text-muted);
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.todo {
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.85em;
  font-weight: 600;
}

footer.legal-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
