/* scrimpl legal pages (Privacy, Terms, DPA, Subprocessors, Cookies). Loaded after /site/site.css and uses its tokens:
   Notion's warm paper canvas, white hairline cards, Geist, ink buttons. A reading page: one column of text at
   about 68 characters, a sticky "On this page" list beside it on wide screens. Placeholders the owner must fill in are
   marked <span class="ph">[…]</span> and show as a butter highlight so none is missed before launch. */

.legal-page .nav { box-shadow: var(--shadow-nav); }

.legal-hero { padding: calc(var(--nav-h) + 72px) 0 40px; }
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
}
.legal-eyebrow a { transition: color var(--ease); }
.legal-eyebrow a:hover { color: var(--ink); }
.legal-hero .h2 { margin-top: 14px; max-width: 820px; }
.legal-meta { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.legal-meta b { font-weight: 500; color: var(--ink-2); }

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 232px) minmax(0, 720px);
  gap: 72px;
  align-items: start;
  padding-bottom: 128px;
}

/* On this page */
.toc { position: sticky; top: calc(var(--nav-h) + 28px); max-height: calc(100vh - var(--nav-h) - 56px); overflow: auto; }
.toc-h { font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.toc details > summary { display: none; }

/* The document */
.doc { color: var(--body); font-size: 16.5px; line-height: 1.65; }
.doc > * + * { margin-top: 16px; }
.doc h2 {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.doc h2:first-of-type { margin-top: 48px; }
.doc h3 { margin-top: 32px; font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc h2 + *, .doc h3 + * { margin-top: 12px; }
.doc p { max-width: 68ch; }
.doc strong, .doc b { font-weight: 500; color: var(--ink-2); }
.doc a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color var(--ease); }
.doc a:not(.btn):hover { text-decoration-color: var(--ink); }
.doc ul, .doc ol { max-width: 68ch; display: grid; gap: 8px; }
.doc ul > li { position: relative; padding-left: 20px; }
.doc ul > li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.doc ol { counter-reset: n; }
.doc ol > li { position: relative; padding-left: 28px; counter-increment: n; }
.doc ol > li::before { content: counter(n) '.'; position: absolute; left: 0; top: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--slot); color: var(--ink-2); overflow-wrap: anywhere; }
.doc td:first-child code { white-space: nowrap; overflow-wrap: normal; }

/* "The short version" */
.short {
  margin-top: 0 !important;
  padding: 28px 32px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc .short h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.short ul { gap: 10px; }
.short li { color: var(--ink-2); }

/* A callout: something the reader should not miss */
.note {
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--panel-sky);
  color: #3E4A56;
  max-width: 68ch;
}
.note b { color: #26313B; }
.note.warm { background: var(--panel-butter); color: #5A4B1D; }
.note.warm b { color: #43380F; }

/* Placeholders the owner must fill in before launch */
.ph {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--panel-butter);
  color: #5A4B1D;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Tables (subprocessors, cookies, processing details) */
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; background: var(--canvas); }
.doc td:first-child { color: var(--ink-2); font-weight: 500; }
.doc td small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); font-weight: 400; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
  background: var(--cta-tint);
  color: var(--cta);
}
.tag.live { background: var(--panel-mint); color: #24452B; }
.tag.planned { background: var(--panel-butter); color: #5A4B1D; }
.tag.none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Legal hub: one card per document */
.legal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 128px; }
.legal-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--ease);
}
.legal-card:hover { border-color: var(--line-2); }
.legal-card p { font-size: 15.5px; line-height: 1.5; }
.legal-card .caption { margin-top: 6px; }

/* ── Tablet: the list goes above the text, folded ───────────────────────────────────────────────────────────────── */
@media (max-width: 1099.98px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  .toc details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .toc details > summary::-webkit-details-marker { display: none; }
  .toc details > summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); }
  .toc details[open] > summary::after { content: '–'; }
  .toc details > .toc-h { display: none; }
  .toc details ol { padding: 0 18px 16px; }
  .doc { max-width: 720px; }
}

/* ── Phone ───────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 699.98px) {
  .legal-hero { padding: calc(var(--nav-h) + 40px) 0 28px; }
  .legal-grid { padding-bottom: 88px; }
  .doc { font-size: 16px; }
  .doc h2 { margin-top: 48px; font-size: 22px; }
  .short { padding: 22px 20px 24px; }
  .legal-list { grid-template-columns: minmax(0, 1fr); padding-bottom: 88px; }
  .legal-card { padding: 24px 20px 26px; }
  .doc th, .doc td { padding: 10px 12px; }
  .toc a { padding-top: 10px; padding-bottom: 10px; }
}

@media print {
  .nav, .toc, .foot, .skip { display: none !important; }
  .legal-hero { padding-top: 0; }
  .legal-grid { display: block; }
  body { background: #fff; }
  .ph { background: none; outline: 1px dashed #b8a24a; }
}

/* Phone: a table with a header row becomes one small card per row, each value under its column's name */
@media (max-width: 699.98px) {
  .doc table.stack thead { display: none; }
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; width: 100%; }
  .doc table.stack tr { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
  .doc table.stack tr:first-child { border-top: 0; }
  .doc table.stack td { padding: 0; border: 0; }
  .doc table.stack td + td { margin-top: 10px; }
  .doc table.stack td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
  .doc table.stack td:empty { display: none; }
}

/* ══ [r11] 2026-10-08 ══ The panels' colours this file always meant (they were never defined: the notes, the placeholders
   and the live / planned tags had no background), and phones: every link a full target, the hero on the gutter line. */
:root { --panel-sky: var(--tone-sky); --panel-butter: var(--tone-butter); --panel-mint: var(--tone-mint); }
@media (max-width: 699.98px) {
  .legal-hero { padding: calc(var(--nav-h) + 26px) 0 24px; }
  .legal-eyebrow a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .legal-hero .h2 { margin-top: 4px; }
  .toc a { display: flex; align-items: center; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .toc details ol { padding-bottom: 12px; }
  .doc ul > li::before { top: 0.68em; }
  .tag { font-size: 13px; }
  .doc h2 { text-wrap: balance; }
  .doc p, .doc li { text-wrap: pretty; }
  .legal-card { min-height: 44px; }
}
@media (pointer: coarse) and (min-width: 700px) {
  .legal-eyebrow a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .legal-hero .h2 { margin-top: 4px; }
  .toc a { display: flex; align-items: center; min-height: 44px; }
}
