/* Shared styles for the legal pages (privacy.html, terms.html).
   Tokens mirror index.html so the pages read as the same product. */
:root {
  color-scheme: light dark;
  --bg: #f8f6fc;
  --fg: #231b33;
  --muted: #6b6180;
  --card: #ffffff;
  --line: #e6e0f2;
  --primary: #7c3aed;
  --primary-soft: rgba(124, 58, 237, .1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15101f;
    --fg: #f0ecf8;
    --muted: #a99dc2;
    --card: #1e1729;
    --line: #322843;
    --primary: #a78bfa;
    --primary-soft: rgba(167, 139, 250, .14);
  }
}
:root[data-theme="dark"] {
  --bg: #15101f;
  --fg: #f0ecf8;
  --muted: #a99dc2;
  --card: #1e1729;
  --line: #322843;
  --primary: #a78bfa;
  --primary-soft: rgba(167, 139, 250, .14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}
.logo { font-weight: 900; font-size: 20px; color: var(--fg); }
.logo:hover { text-decoration: none; color: var(--primary); }

.lang { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 800; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 60px; }
article[hidden] { display: none; }

h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 18px 0 4px; font-weight: 900; }
.date { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
h2 { font-size: 20px; margin: 34px 0 10px; font-weight: 900; }
p, li { color: var(--fg); }
ul { padding-left: 22px; margin: 10px 0; }
li { margin: 6px 0; }
li::marker { color: var(--primary); }

.callout {
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  max-width: 760px; margin: 0 auto; padding: 22px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between;
}
