/* Sapere — Privacy and Terms pages. Same colours as the app. */
:root {
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Noto Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --bg: #f4f6fb; --surface: #ffffff; --line: rgba(15, 20, 32, .10);
  --text: #0f1420; --muted: #55607a; --faint: #8590a8;
  --accent: #1d5fe0; --accent-soft: rgba(59, 124, 245, .12); --blue-soft: rgba(47, 111, 224, .12);
  --gold: #a8781e; --gold-soft: rgba(201, 150, 47, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060a14; --surface: #0f1628; --line: rgba(205, 220, 255, .10);
    --text: #e8edf8; --muted: #93a0bd; --faint: #66728f;
    --accent: #4ea1ff; --accent-soft: rgba(78, 161, 255, .12); --blue-soft: rgba(78, 161, 255, .14);
    --gold: #e2b65c; --gold-soft: rgba(226, 182, 92, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060a14; --surface: #0f1628; --line: rgba(205, 220, 255, .10);
  --text: #e8edf8; --muted: #93a0bd; --faint: #66728f;
  --accent: #4ea1ff; --accent-soft: rgba(78, 161, 255, .12); --blue-soft: rgba(78, 161, 255, .14);
  --gold: #e2b65c; --gold-soft: rgba(226, 182, 92, .12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text);
  background: radial-gradient(1000px 520px at 50% -12%, var(--blue-soft), transparent 62%), var(--bg);
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 56px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.back:active { transform: scale(.97); }

.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 9vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 10px; }
.date { color: var(--faint); font-size: 14px; margin: 0 0 26px; }

.plain {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 20px 8px; margin: 0 0 34px; box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .45); overflow: hidden;
}
.plain::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--accent), var(--gold)); }
.plain h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.plain ul { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 0 0 12px 28px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }

section { padding: 0 0 6px; }
section h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 30px 0 8px; display: flex; gap: 10px; align-items: baseline; }
section h2 .n { font-family: var(--sans); font-size: 13px; color: var(--faint); font-weight: 600; min-width: 20px; }
section p, section li { color: var(--text); }
section ul { padding-left: 20px; margin: 8px 0 12px; }
section li { margin: 4px 0; }
.muted { color: var(--muted); }
.note { background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }

.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot a { color: var(--muted); }
