/* Shared styles for the legal pages (privacy.html, security.html). Tokens match index.html. */
:root {
  --mist: #F2F5F1; --paper: #FFFFFF; --moss: #1F3B2C; --fern: #2F6B4A; --quetzal: #B3263B;
  --stone: #5E6B63; --line: #D5DDD6; --flag: #FFF2C4;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #0F1813; --paper: #16221B; --moss: #DCE8DF; --fern: #6FBF8E; --quetzal: #E2566B;
    --stone: #9DB0A4; --line: #2A3A31; --flag: #4A3F12; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #0F1813; --paper: #16221B; --moss: #DCE8DF; --fern: #6FBF8E; --quetzal: #E2566B;
  --stone: #9DB0A4; --line: #2A3A31; --flag: #4A3F12; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--moss); font-family: var(--body); font-size: 17px; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--fern); }
:focus-visible { outline: 3px solid var(--fern); outline-offset: 2px; }
.wrap { max-width: 820px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.top { position: sticky; top: 0; z-index: 5; background: #13261C; color: #EEF3EE; }
.top .wrap { max-width: 1160px; display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 22px; color: inherit; text-decoration: none; margin-right: auto; }
.brand small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #B9C8BD; margin-left: 8px; }
.langs { display: flex; gap: 2px; border: 1px solid rgba(238,243,238,.25); border-radius: 999px; padding: 2px; }
.langs button { font: 500 13px var(--body); color: #EEF3EE; background: transparent; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #EEF3EE; color: #13261C; }

main { padding-block: 56px 80px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fern); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 12px; }
h2 { font-size: 24px; margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.meta { color: var(--stone); font-size: 15px; }
.lead { font-size: 19px; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; background: var(--paper); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.ph { background: var(--flag); border-radius: 3px; padding: 0 4px; font-family: var(--mono); font-size: .88em; }
.back { display: inline-block; margin-top: 32px; }

footer { background: #13261C; color: #B9C8BD; font-size: 14px; }
footer .wrap { max-width: 1160px; padding-block: 28px; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: #EEF3EE; }
@media (max-width: 420px) { .brand small { display: none; } }

footer .by { display: inline-flex; align-items: center; gap: 8px; }
footer .by img { width: 28px; height: 28px; display: block; }
