/* Privacy policy and terms — plain static pages, readable without the app.
   Light by default, dark only when the site's own theme toggle says so
   (html[data-theme="dark"], set from localStorage 'pw_theme'), exactly like
   the rest of the site — the device's dark mode is not used. */
:root {
  --bg: #FAF7F2;
  --text: #1A1A1A;
  --muted: #5E5A55;
  --line: #E7E1D8;
  --accent: #F05A12;
  --card: #FFFFFF;
}
html[data-theme="dark"] {
  --bg: #141312;
  --text: #F5EFE6;
  --muted: #B3ABA0;
  --line: #2E2B28;
  --accent: #F5A63A;
  --card: #1C1A18;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 'DM Sans', system-ui, -apple-system, sans-serif;
}
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.legal-brand img { width: 32px; height: 32px; }
.legal-brand .it { color: #F05A12; }
.legal-brand .up { color: #F5A63A; }
.legal-top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  margin-left: 16px;
}
.legal-top nav a:hover,
.legal-top nav a[aria-current] { color: var(--accent); }
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 36px 0 6px;
}
.legal-date { color: var(--muted); margin: 0 0 28px; }
h2 {
  font-size: 1.15rem;
  margin: 34px 0 8px;
}
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; }
a { color: var(--accent); }
.legal-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.legal-summary p:last-child { margin-bottom: 0; }
.legal-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .legal-top nav a { margin-left: 12px; }
}
