:root,
[data-theme="light"] {
  --bg: #f6f5f8;
  --bg-elevated: #ffffff;
  --bg-card: #eeedf2;
  --text: #16151c;
  --text-muted: #6b6878;
  --line: #d9d6e2;
  --accent: #7c3aed;
  --accent-text: #6d28d9;
  --body: #3f3d4a;
}

[data-theme="dark"] {
  --bg: #0d0d12;
  --bg-elevated: #16151e;
  --bg-card: #1c1b24;
  --text: #f5f4f8;
  --text-muted: #a19fac;
  --line: #36323f;
  --accent: #a78bfa;
  --accent-text: #c2a5ff;
  --body: #c8c6d2;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legal-top a.home {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
}

header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.updated {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

p,
li {
  font-size: 0.95rem;
  color: var(--body);
}

ul {
  padding-left: 1.25rem;
}

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

.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-muted);
}
