/* Styles for the privacy and terms pages. Kept external so the
   Content-Security-Policy can forbid inline <style> blocks. Same palette as
   styles.css, without the app's components. */

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

:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --body: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --paper: #ffffff;
  --card: #fafafa;
  --field: #f4f4f5;
  --focus: #2563eb;
  --warn: #b45309;
  --logo-filter: none;
}

/* theme.js sets data-theme for every page, this one included. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fafafa;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --line: #27272a;
  --paper: #0a0a0a;
  --card: #141414;
  --field: #18181b;
  --focus: #60a5fa;
  --warn: #f5b84a;
  --logo-filter: invert(1);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { width: 24px; height: 24px; 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, background 140ms ease;
}

.theme-toggle:hover { 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: 700px; margin: 0 auto; padding: 48px 24px 96px; }

h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.meta { margin-bottom: 32px; color: var(--muted); font-size: 14px; }
h2 { margin: 44px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--body); }
ul { margin: 0 0 16px; padding-left: 20px; color: var(--body); }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--field);
  font-size: 0.9em;
}

/* ── Short version ───────────────────────────────────────────────────────── */

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

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

.tldr ul { margin: 0; color: var(--ink); }
.tldr li { font-size: 15.5px; line-height: 1.6; }
.tldr li:last-child { margin-bottom: 0; }
.tldr-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* The one paragraph people most need to read: what the AI provider may do. */
.callout {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--field);
}

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

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-wrap { margin: 0 0 16px; overflow-x: auto; }

table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
td { color: var(--body); }
td:first-child { color: var(--ink); font-weight: 500; }

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

.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

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