/* /privacy pages — tokens mirror public/style.css exactly so the section reads
   as the same site; components below are privacy-specific. Source of truth for
   the token blocks is style.css — if the site palette changes, re-copy. */
:root {
  --page: #f6f4ef;
  --page-2: #ecefeb;
  --surface: #fffefa;
  --surface-soft: #f8faf7;
  --ink: #1d252c;
  --ink-soft: #4d5b65;
  --muted: #71808a;
  --faint: #9aa5ac;
  --line: #d9dfdc;
  --line-strong: #c4cfcb;
  --accent: #2368a2;
  --accent-soft: #e6f0f7;
  --up: #21835b;
  --up-soft: #e7f5ed;
  --degraded: #b7791f;
  --degraded-soft: #fff5de;
  --down: #c84452;
  --down-soft: #fdecee;
  --unknown: #7a8790;
  --unknown-soft: #eef1f2;
  --shadow: 0 18px 42px rgba(35, 42, 49, 0.08);
  --page-glow: rgba(255, 255, 255, 0.72);
  --page-mid: #f9f7f1;
  --texture-ink: rgba(29, 37, 44, 0.04);
  --masthead-bg: rgba(246, 244, 239, 0.88);
  --masthead-line: rgba(196, 207, 203, 0.55);
  --card-bg: rgba(255, 254, 250, 0.88);
  --btn-ghost-hover: #f9fbf9;
  --up-line: #b7ddc9;
  --degraded-line: #efd394;
  --down-line: #edbcc2;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  color-scheme: light;
}

/* Dark = the same paper, lights off — keep in sync with style.css's dark block. */
:root[data-theme="dark"] {
  --page: #0d0c0a;
  --page-2: #12100e;
  --surface: #171511;
  --surface-soft: #1e1c17;
  --ink: #ece7dd;
  --ink-soft: #b9b2a4;
  --muted: #958e80;
  --faint: #7a7468;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #5ea8e0;
  --accent-soft: #14222e;
  --up: #4cc38e;
  --up-soft: #10241a;
  --degraded: #dda640;
  --degraded-soft: #2a2010;
  --down: #ef6573;
  --down-soft: #2b1518;
  --unknown: #8f8a7e;
  --unknown-soft: #1e1c17;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  --page-glow: rgba(255, 255, 255, 0.03);
  --page-mid: #0f0e0c;
  --texture-ink: rgba(255, 255, 255, 0.022);
  --masthead-bg: rgba(13, 12, 10, 0.88);
  --masthead-line: rgba(255, 255, 255, 0.09);
  --card-bg: rgba(23, 21, 17, 0.88);
  --btn-ghost-hover: #24211c;
  --up-line: rgba(76, 195, 142, 0.38);
  --degraded-line: rgba(221, 166, 64, 0.4);
  --down-line: rgba(239, 101, 115, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; overflow-x: hidden; }

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--page-glow), rgba(255, 255, 255, 0) 360px),
    linear-gradient(135deg, var(--page) 0%, var(--page-mid) 44%, var(--page-2) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--texture-ink) 1px, transparent 1px);
  background-size: 100% 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 60%);
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  z-index: 1;
  background: var(--masthead-bg);
  border-bottom: 1px solid var(--masthead-line);
  backdrop-filter: blur(6px);
}

.masthead__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 20px 16px;
}

/* Same grammar as the homepage masthead: slim right-aligned utility strip on top. */
.topnav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.toplink {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.8;
}

.toplink:hover { opacity: 1; }

.brand__name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
}

.brand__name a { color: var(--ink); text-decoration: none; }
.brand__dot { color: var(--accent); }
.brand__tld { color: var(--muted); font-weight: 500; }

.brand__tagline { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.btn--icon:hover { border-color: var(--ink-soft); background: var(--btn-ghost-hover); }
.btn--icon svg { width: 17px; height: 17px; }
.btn--icon .icon-sun { display: none; }
:root[data-theme="dark"] .btn--icon .icon-sun { display: block; }
:root[data-theme="dark"] .btn--icon .icon-moon { display: none; }

/* ---------- layout ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 640;
  line-height: 1.12;
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
}

h3 { font-size: 16.5px; margin: 0; }

.lede { color: var(--ink-soft); font-size: 16px; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.jump__label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.jump__chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.jump__chip:hover { border-color: var(--accent); color: var(--accent); }

.crumb { margin: 0 0 4px; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

a { color: var(--accent); }

/* ---------- matrix table ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 26px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.matrix {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.matrix thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
}

.matrix tbody th, .matrix tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }

.matrix__provider th {
  background: var(--surface-soft);
  font-family: "Fraunces", Georgia, serif;
  font-size: 15.5px;
  font-weight: 640;
  padding: 12px 14px 10px;
}

.matrix__provider-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.matrix tr.is-collapsed { display: none; }

.matrix__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15.5px;
  font-weight: 640;
  color: var(--ink);
}

.matrix__toggle:hover { color: var(--accent); }

.matrix__chev {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}

.matrix__toggle[aria-expanded="false"] .matrix__chev { transform: rotate(-45deg); }

.matrix__plink {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.matrix__plink:hover { text-decoration: underline; text-underline-offset: 3px; }

.matrix tbody th[scope="row"] { font-weight: 550; white-space: nowrap; }
.matrix tbody th[scope="row"] a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.matrix tbody th[scope="row"] a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.matrix__retention { color: var(--ink-soft); max-width: 300px; }

/* ---------- matrix cells: dot + word for the headline column, quiet text for the rest ---------- */

.cell { display: inline-flex; align-items: center; gap: 7px; font-weight: 620; white-space: nowrap; }
.cell .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cell--bad { color: var(--down); }
.cell--warn { color: var(--degraded); }
.cell--good { color: var(--up); }
.cell--unknown { color: var(--unknown); }

.val { font-weight: 600; white-space: nowrap; }
.val--good { color: var(--up); }
.val--warn { color: var(--degraded); white-space: normal; }
.val--bad { color: var(--down); }
.val--muted { color: var(--muted); font-weight: 500; }
.val--na { color: var(--faint); font-weight: 400; }

/* header tooltips — CSS-only, keyboard/tap focusable */
.th-tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--line-strong);
  outline: none;
}
.th-tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: 250px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.th-tip:hover::after, .th-tip:focus::after { opacity: 1; }
.th-tip--right::after { left: auto; right: 0; }

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--bad { color: var(--down); background: var(--down-soft); border-color: var(--down-line); }
.badge--warn { color: var(--degraded); background: var(--degraded-soft); border-color: var(--degraded-line); }
.badge--good { color: var(--up); background: var(--up-soft); border-color: var(--up-line); }
.badge--unknown { color: var(--unknown); background: var(--unknown-soft); border-color: var(--line-strong); }

/* ---------- patterns / lists ---------- */

.patterns ul, .provider-links ul { margin: 0; padding-left: 20px; }
.patterns li, .provider-links li { margin: 10px 0; color: var(--ink-soft); }
.patterns li strong { color: var(--ink); }

/* ---------- plan cards ---------- */

.cards .card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 14px;
  margin: 16px 0;
  scroll-margin-top: 20px;
}

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card__head h3 { font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 640; }

.card__fields { margin: 0; }
.card__field { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.card__field dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 2px; }
.card__field dd { margin: 0; color: var(--ink-soft); min-width: 0; overflow-wrap: break-word; }

.card__notes { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.card__confidence { color: var(--degraded); font-size: 13px; margin: 8px 0 0; }

.card__sources { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.card__sources summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.card__sources summary:hover { color: var(--accent); }
.card__sources ul { list-style: none; margin: 8px 0 0; padding: 0; }
.card__sources li { margin: 12px 0; font-size: 13px; }
.card__sources li > a { overflow-wrap: anywhere; }
.card__sources blockquote {
  margin: 6px 0 4px;
  padding: 6px 12px;
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.src__date, .src__accessed { color: var(--faint); font-size: 12px; }

/* ---------- footer ---------- */

.footer { position: relative; z-index: 1; border-top: 1px solid var(--masthead-line); }
.footer__meta {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 20px 30px;
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .masthead__inner { padding: 20px 16px 14px; }
  .wrap { padding: 22px 16px 48px; }
  .card__field { grid-template-columns: 1fr; gap: 2px; }
}
