/* The Terms, the Privacy Policy and the agree screen: plain reading pages, and the footer that
   links them from every public page. */
.legal { max-width: 680px; padding: 20px 20px 48px; }
.legal .home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 16px; font-weight: 400; line-height: 1.2; }
.legal .home .mark { flex: none; display: block; }
.legal .home .word { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); font-variation-settings: "SOFT" 100; }
/* The page's one h1 is the document title; the sections are h2 and their parts h3, looking as they did when they were h3 and h4. */
.legal .doc-title { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.15; font-weight: 600; color: var(--heading); margin: 8px 0 8px; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
.legal .meta { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.legal p { line-height: 1.6; }
/* The capitalised disclaimers, the liability cap and the arbitration and class waiver are set in bold as well. */
.legal .waiver { font-weight: 700; }
.legal a { color: var(--accent-strong); }

/* The documents' body: numbered sections, a contents list, the retention table. Long words
   (addresses, emails) wrap rather than push the page sideways. */
.legal main { overflow-wrap: anywhere; }
.legal section { scroll-margin-top: 16px; }
.legal h2 { font-family: var(--serif); font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--heading); margin: 36px 0 8px; letter-spacing: normal; font-variation-settings: "SOFT" 100; }
.legal h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--heading); margin: 20px 0 4px; font-variation-settings: normal; text-wrap: wrap; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0 12px; }
.legal li { line-height: 1.6; margin: 0 0 6px; }
.legal code { font-family: var(--mono); font-size: 0.92em; }
.legal .toc ol { columns: 2 220px; column-gap: 24px; margin: 0 0 8px; }
.legal .toc li { break-inside: avoid; margin: 0; }
.legal .toc a { display: inline-flex; align-items: center; min-height: 32px; }
.legal dl.processors dt { font-weight: 600; color: var(--heading); margin: 16px 0 2px; }
.legal dl.processors dd { margin: 0; line-height: 1.6; }

.legal .table-wrap { margin: 12px 0 16px; }
.legal table.keep { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal table.keep th, .legal table.keep td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border-soft); }
.legal table.keep thead th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.legal table.keep tbody th { font-weight: 600; color: var(--heading); width: 38%; }
/* On a phone each row stacks: what, then how long. */
@media (max-width: 560px) {
  .legal table.keep thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal table.keep, .legal table.keep tbody, .legal table.keep tr, .legal table.keep th, .legal table.keep td { display: block; width: auto; }
  .legal table.keep tr { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .legal table.keep th, .legal table.keep td { padding: 0; border: 0; }
  .legal table.keep tbody th { width: auto; margin: 0 0 2px; }
}

.agree { margin-top: 24px; display: grid; gap: 24px; }
.agree-box { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 17px; line-height: 1.5; cursor: pointer; }
.agree-box input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.agree-actions { display: flex; justify-content: center; }
.agree-actions .btn { min-width: 220px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.agree-voice { display: grid; gap: 8px; }
.agree-voice[hidden], .agree-box[hidden] { display: none; }
.agree-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
/* The quiet way out, under Continue: links the size of a thumb, in the text's own colour. */
.agree-out { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; font-size: 15px; color: var(--muted); }
.agree-out-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; }
.agree-out a, .agree-out .link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.agree-out .link-button { font: inherit; background: none; border: 0; cursor: pointer; }

.legal .nowrap { white-space: nowrap; }

/* The links wrap as whole links with space between: the "·" text between them (font-size 0 hides it) would dangle at a line's end. */
.legal-links { margin: 32px 0 0; padding: 0 0 8px; text-align: center; font-size: 0; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; }
.legal-links a { font-size: 14px; color: var(--muted); text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

/* The public report form (/report): the four kinds as cards, then the fields, then one Send. */
.legal .report-form { display: grid; gap: 20px; margin-top: 8px; }
.legal .report-kinds { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.legal .report-kinds legend { padding: 0; margin: 0 0 6px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.legal .kind-card { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--radius-sm); background: var(--field); font-size: 17px; line-height: 1.35; cursor: pointer; }
.legal .kind-card input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.legal .kind-card:has(input:checked) { border-color: var(--focus); }
.legal .report-form textarea.input { min-height: 140px; resize: vertical; line-height: 1.45; }
.legal .report-actions { display: flex; justify-content: center; }
.legal .report-actions .btn { flex: none; min-width: 160px; min-height: 44px; }
.legal .report-actions .btn.is-off { opacity: .55; }
.legal .report-sent { font-size: 18px; line-height: 1.5; margin: 16px 0 0; }
