
  /* Dark is the base and light lives in the media query, matching app/guides.py.
     branding.js overwrites bg/panel/border/text/muted/accent at runtime; everything
     below derives from those. Before this the page had no light palette at all and
     rendered dark until branding.js resolved. */
  :root {
    --bg:#0f1115; --panel:#181b22; --panel-2:#1f232c; --border:#2a2f3a; --text:#e7eaf0;
    --muted:#9aa3b2; --accent:#4f8cff; --bad:#e5534b; --good:#57ab5a; --warn:#d4a72c;
    --header-bg: rgba(15,17,21,.84); --tint: rgba(255,255,255,.02);
    --shadow: 0 20px 50px rgba(0,0,0,.45);
  }
  @media (prefers-color-scheme: light) {
    :root {
      --bg:#f5f7fb; --panel:#ffffff; --panel-2:#eef2f7; --border:#dde1e8; --text:#1a1d24;
      --muted:#5b6472; --accent:#3b6fe0; --bad:#cb4036; --good:#268042; --warn:#94690f;
      --header-bg: rgba(255,255,255,.86); --tint: rgba(20,26,40,.022);
      --shadow: 0 18px 44px rgba(20,26,40,.10);
    }
  }
  /* Accent as small text fails 4.5:1 in light mode on every admin theme. Graphics
     keep the raw accent - they only need 3:1. */
  :root { --accent-text: var(--accent); }
  @media (prefers-color-scheme: light) {
    @supports (color: color-mix(in srgb, red, blue)) {
      :root { --accent-text: color-mix(in srgb, var(--accent) 70%, #000); }
    }
  }
  :root { --accent-2: #7c4dd6; }
  @supports (color: color-mix(in oklab, red, blue)) {
    :root { --accent-2: color-mix(in oklab, var(--accent) 58%, #8b5cf6); }
  }
  :root {
    --accent-08: color-mix(in srgb, var(--accent) 8%, transparent);
    --accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-20: color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-30: color-mix(in srgb, var(--accent) 30%, transparent);
    --accent2-14: color-mix(in srgb, var(--accent-2) 14%, transparent);
    --good-14: color-mix(in srgb, var(--good) 14%, transparent);
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
         font: 16px/1.7 -apple-system, "Segoe UI", Roboto, sans-serif;
         background: var(--bg); color: var(--text); position: relative; }
  body::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1100px; height: 440px; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 42% 46% at 26% 32%, var(--accent2-14), transparent 70%),
      radial-gradient(ellipse 46% 50% at 74% 26%, var(--accent-20), transparent 72%);
  }
  a { color: var(--accent-text); }
  .wrap { max-width: 760px; margin: 0 auto; padding: 34px 20px 80px; flex: 1; display: flex; flex-direction: column; width: 100%; position: relative; z-index: 1; }
  .crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
  .crumbs a { color: var(--muted); }
  .eyebrow {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
    background: var(--accent-12); border: 1px solid var(--accent-30); color: var(--accent-text);
  }
  .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-14); }
  h1 { font-size: 28px; margin: 0 0 6px; }
  .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
  .consent-choice { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
                    padding: 14px 16px; margin: 4px 0 8px; }
  .consent-choice p { margin: 0 0 10px; }
  .consent-choice button { min-height: 40px; padding: 8px 16px; margin: 0 8px 6px 0; border-radius: 8px;
                           border: 1px solid var(--border); background: transparent; color: var(--text);
                           font: inherit; font-weight: 600; cursor: pointer; }
  .consent-choice button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  h1 { letter-spacing: -.02em; }
  h2 { font-size: 19px; margin: 34px 0 10px; display: flex; align-items: center; gap: 11px; }
  h2::before {
    content: ''; width: 16px; height: 3px; border-radius: 2px; flex-shrink: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
  }
  /* The policy body sits on a panel so the legal text reads as one document rather
     than as loose paragraphs on the page background. */
  .doc { background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
         padding: 8px 26px 22px; box-shadow: var(--shadow); }
  .doc h2:first-of-type { margin-top: 26px; }
  p, li { color: var(--text); }
  ul { padding-left: 20px; }
  /* <main> holds everything above the footer; a flex column like .wrap, so the page lays
     out exactly as it did when these were .wrap's own children. */
  main#main { display: flex; flex-direction: column; }
  footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
  footer a { color: var(--muted); margin-right: 12px; }
