/* ==========================================================================
   a11 info — legal pages (/privacy, /subprocessors)
   --------------------------------------------------------------------------
   Layered ON TOP of brand.css: the same nav band, hero, rules, footer and
   ColorTrim as the one-page sheets, plus a long-form prose column (.doc) and
   accessible data tables. Unlike the sheets these are multi-page documents,
   so the print block below undoes brand.css's one-pager rules.
   ========================================================================== */

/* hero — left-aligned so it lines up with the prose underneath */
.hero.legal-hero { text-align: left; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.legal-hero .inner { max-width: 920px; margin-inline: auto; }
.legal-hero h1 { margin-left: 0; max-width: none; }
.legal-hero .sub { margin-left: 0; max-width: 640px; }
.legal-hero .effective { margin-top: 1.25rem; }
.legal-hero .effective time { color: var(--fg); }

/* long-form body */
.doc { max-width: 920px; margin-inline: auto; padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.doc > :first-child { margin-top: 0; }
.doc h2 {
  font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25;
  margin: 2.6rem 0 0.75rem; padding-top: 1.1rem; border-top: 1px dashed var(--line);
  scroll-margin-top: 1rem;
}
.doc h2:first-child { border-top: none; padding-top: 0; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: 0.45rem; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--c-reviewed); text-underline-offset: 2px; }
.doc code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; font-family: var(--font-mono); font-size: 0.86em; }
.doc em { font-family: var(--font-serif); font-style: italic; font-size: 1.06em; }
.doc .note {
  background: var(--surface); border-radius: 12px; padding: 0.9rem 1.1rem;
  font-size: 15px; color: var(--muted);
}
.doc .note em { font-family: inherit; font-size: inherit; }

/* contact block */
.doc address { font-style: normal; font-size: 16px; line-height: 1.65; }

/* data tables — bordered card on wide screens, stacked rows on phones */
.doc table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.1rem 0 1.5rem;
  border: 1px solid var(--line2); border-radius: 12px; overflow: hidden;
  font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow);
}
.doc th, .doc td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line2); }
.doc thead th {
  background: var(--surface); font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap;
}
.doc tbody th { font-weight: 400; min-width: 9rem; }
.doc tbody tr:last-child > * { border-bottom: none; }
.doc td strong { font-weight: 600; }

@media (max-width: 720px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc table { border: none; border-radius: 0; box-shadow: none; overflow: visible; }
  /* header row hidden visually; each cell carries its column name via data-label */
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc tbody tr { border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 0.85rem; box-shadow: var(--shadow); overflow: hidden; }
  .doc tbody th { background: var(--surface); white-space: normal; font-size: 15.5px; }
  .doc tbody td { padding-top: 0.6rem; }
  .doc tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 0.15rem;
    font-family: var(--font-mono); font-weight: 500; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted);
  }
  .doc tbody tr > :last-child { border-bottom: none; }
}

/* footer: one more link than the sheets — let it wrap on phones */
.footer .links { flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Print — a normal multi-page document, not the sheets' one-pager
   -------------------------------------------------------------------------- */
@media print {
  @page { size: letter portrait; margin: 0.6in 0.6in 0.7in; }
  body { display: block; min-height: 0; font-size: 11px; }
  body::before, body::after { display: none !important; }
  main { margin-top: 0; border-top: none; display: block; }
  main > .band:first-child { margin-top: 0; padding-top: 0; }
  .band { margin-inline: 0; border-inline: none; padding-inline: 0; }
  .rule { display: none; }
  .hero.legal-hero { padding: 0 0 0.15in; }
  .legal-hero h1 { font-size: 28px; }
  .legal-hero .sub { font-size: 12px; max-width: none; }
  .doc { max-width: none; padding: 0.1in 0 0; }
  .doc h2 { font-size: 15px; margin-top: 0.25in; break-after: avoid; }
  .doc p, .doc li, .doc address { font-size: 11px; }
  .doc table { box-shadow: none; font-size: 10px; }
  .doc tr { break-inside: avoid; }
  .doc a { color: inherit; }
  .color-trim { display: none; }
}

/* --------------------------------------------------------------------------
   Monochrome — legal pages carry no accents (see README "Where the links go"):
   no aurora, no colored badge dot, solid-ink ColorTrim.
   -------------------------------------------------------------------------- */
.legal-hero .aurora { display: none; }
.legal-hero .badge .dot { background: var(--fg); }
.doc li::marker { color: var(--muted); }
.color-trim .ink { width: 100%; }
.color-trim span { display: none; }
