/* Styles for privacy.html. Kept external so the Content-Security-Policy can
   forbid inline <style> blocks. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #5f5a50;
  --line: #ded5c3;
  --paper: #fffdf7;
  --body: #2a2620;
  --card: rgba(255, 255, 255, 0.55);
  --field: #faf8f2;
  --focus: #3158d4;
  --logo-blend: multiply;
  --logo-filter: none;
}

/* Matches the dark palette in styles.css — theme.js sets data-theme for every
   page, this one included. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3efe4;
  --muted: #a49d8f;
  --line: #38352d;
  --paper: #12110e;
  --body: #d9d3c6;
  --card: #1c1a16;
  --field: #1e1c17;
  --focus: #8aa2ff;
  --logo-blend: screen;
  --logo-filter: invert(1) hue-rotate(180deg);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 15px;
}

.brand img {
  width: 28px;
  height: 28px;
  mix-blend-mode: var(--logo-blend);
  filter: var(--logo-filter);
}

.theme-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.theme-toggle:hover { border-color: var(--ink); color: var(--ink); background: var(--field); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-toggle::before { content: "☾"; }
:root[data-theme="dark"] .theme-toggle::before { content: "☀"; }

.container { max-width: 680px; margin: 0 auto; padding: 64px 24px 96px; }

h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
h2 { font-size: 17px; font-weight: 700; margin: 40px 0 8px; }
p { margin: 0 0 16px; color: var(--body); }
a { color: var(--ink); }

/* ── TL;DR card ───────────────────────────────────────────────────────────── */

.tldr {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 32px 0 8px;
}

.tldr-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.tldr ul { margin: 0; padding-left: 20px; }

.tldr li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
}

.tldr li:last-child { margin-bottom: 0; }

.tldr-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0 0;
}

.footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  .container { padding: 40px 20px 72px; }
  .tldr { padding: 20px; }
}
