/* Long-form prose for /privacy and /terms (2026-10-04, SMS relay batch 2).
   Its own file so the two legal pages can't disturb the home page's layout:
   site.css is shared by both languages of the home page, and a prose rule
   added there would reach them too. Uses only tokens.css values. */

.doc { padding-block: var(--sp-4) var(--sp-5); }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 7vw, 52px); margin-top: var(--sp-1); }
.doc .updated { margin-top: var(--sp-2); font-size: 15px; color: var(--ink-2); }
.doc .intro { margin-top: var(--sp-3); font-size: 19px; }

.doc h2 {
  font-size: clamp(23px, 4.4vw, 29px);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--rule) solid var(--ink);
  scroll-margin-top: var(--sp-2);
}
.doc h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 18px; line-height: 1.35; letter-spacing: 0;
  margin-top: var(--sp-4);
}
.doc p, .doc ul, .doc ol, .doc .table-scroll { margin-top: var(--sp-2); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: var(--sp-1); }
.doc a { color: var(--accent); text-underline-offset: 2px; }
.doc a:hover { color: var(--accent-2); }

/* The callout carries the lines a carrier reviewer looks for and the lines a
   client most needs; it is the panel colour, never a second accent. */
.doc .callout {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--panel);
  border-left: var(--rule) solid var(--accent);
  border-radius: 0 var(--r-box) var(--r-box) 0;
}
.doc .callout > :first-child { margin-top: 0; }

/* The card's exact words, shown as the card: a bordered box, so a reviewer
   reads it as the thing we hand over and not as more policy text. */
.doc .card-copy {
  margin: var(--sp-2) 0 0;
  padding: var(--sp-3);
  max-width: 26em;
  border: 2px solid var(--ink);
  border-radius: var(--r-box);
  font-size: 15.5px;
}
.doc .card-copy > :first-child { margin-top: 0; }

/* The card itself, as a picture: Twilio's reviewers verify a paper opt-in
   from a hosted image of it (error 30909, 2026-10-04). */
.doc .card-shot { margin: var(--sp-2) 0 0; max-width: 525px; }
.doc .card-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-box); box-shadow: 0 2px 10px rgba(20,18,16,.18); }

.doc .toc { margin-top: var(--sp-3); padding-left: 1.3em; }
.doc .toc li + li { margin-top: 2px; }

/* Tables scroll inside their own box on a phone; the page itself never
   scrolls sideways. */
.doc .table-scroll { overflow-x: auto; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
.doc th { font-weight: 700; border-bottom: 2px solid var(--ink); }

/* Under 640px a table's rows stack into cards: the first cell leads in bold
   and the others carry their column name, so no column is ever scrolled off
   the edge of a phone (the 375px shot hid "Run by" entirely). */
@media (max-width: 639px) {
  .doc table.stack { min-width: 0; }
  .doc table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .doc table.stack td { display: block; padding: 2px 0; border: 0; }
  .doc table.stack td:first-child { font-weight: 700; }
  .doc table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-2); }
}
