/* Privacy and terms pages: Tenra's colours, one readable column, both themes. */
:root { --bg: #f4f6f1; --text: #141a14; --muted: #5b6459; --line: #dde3d7; --accent-ink: #4a6b00; --warn: #8a5a00; --warn-soft: #fff3d6; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d0b; --text: #eef2ea; --muted: #9ea69c; --line: #2b322a; --accent-ink: #c8f542; --warn: #f0b44c; --warn-soft: #2b2210; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
.legal { max-width: 720px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 64px max(18px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 8px; }
h1, h2 { font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2rem; margin: 28px 0 0; }
h2 { font-size: 1.15rem; margin: 18px 0 0; }
h2.health { color: var(--warn); }
p, ul { margin: 0; }
ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
a { color: var(--accent-ink); }
code { font-size: 0.9em; }
.muted { color: var(--muted); font-size: 0.9rem; }
.draft { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 0.9rem; }
.langs { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
section { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.back { margin-top: 16px; }

/* Language and return links have the same touch and focus treatment as the app. */
a { text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 3px; }
.langs a, .back { display: inline-flex; align-items: center; min-height: 44px; }
.legal { overflow-wrap: anywhere; }
