/* The content pages — Privacy Policy, Terms of Use, Support and the 404 — in the landing's paper, type, header and
   footer (base.css): a reading column, its contents beside it from 1000 px. No script; build.mjs fills page.html. */

.doc { display: grid; row-gap: var(--space-8); padding-block: clamp(24px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.doc-head, .doc-body, .toc { min-width: 0; max-width: 720px; }

.doc h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
/* The title on the marker band, as the Plan's «Now» task; the band follows the words onto a second line. */
.doc h1 span { color: var(--color-text-on-highlight); background: var(--color-marker-band); box-shadow: 0.14em 0 0 var(--color-marker-band), -0.14em 0 0 var(--color-marker-band); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.updated { margin-top: var(--space-5); font-size: 0.9375rem; color: var(--color-text-secondary); }

.toc { padding: var(--space-4) var(--space-6); border: var(--border-hairline) solid var(--color-border-hairline); border-radius: var(--radius-l); background: var(--color-surface-raised); font-size: 0.9375rem; line-height: 1.45; }
.toc p { padding-block: var(--space-2); font-weight: 600; color: var(--color-text-secondary); }
.toc ol { padding-left: 1.5em; list-style: decimal; }
.toc li::marker { color: var(--color-text-secondary); }
/* 22 px of text in a 44 px row: every line of the contents is a full touch target. */
.toc a { display: block; padding-block: 11px; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 720px) minmax(220px, 300px); justify-content: start; column-gap: clamp(48px, 7vw, 120px); }
  .doc-head { grid-area: 1 / 1; }
  .doc-body { grid-area: 2 / 1; }
  .toc { grid-area: 1 / 2 / span 2; align-self: start; position: sticky; top: var(--space-6); max-height: calc(100svh - 2 * var(--space-6)); overflow: auto; }
  .toc a { padding-block: 6px; }
}

.doc-body { line-height: 1.6; }
.doc-body :is(p, ul, ol, blockquote, .table) { margin-bottom: var(--space-4); }
.doc-body :is(ul, ol) { padding-left: 1.3em; list-style: revert; }
.doc-body li { margin-block: var(--space-1); }
.doc-body li > :is(ul, ol) { margin-bottom: 0; }
.doc-body h2 { margin: var(--space-12) 0 var(--space-3); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; scroll-margin-top: var(--space-6); }
.doc-body h3 { margin: var(--space-8) 0 var(--space-2); font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.doc-body > :first-child { margin-top: 0; }
.doc-body a { overflow-wrap: anywhere; }
.doc-body blockquote { margin-inline: 0; padding: var(--space-6) var(--space-6) var(--space-2); border: var(--border-hairline) solid var(--color-border-hairline); border-radius: var(--radius-xl); background: var(--color-surface-raised); }
.doc-body hr { margin-block: var(--space-10); border: 0; border-top: var(--border-hairline) solid var(--color-border-hairline); }

.table { overflow-x: auto; border: var(--border-hairline) solid var(--color-border-hairline); border-radius: var(--radius-l); background: var(--color-surface-raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
th, td { padding: 10px 14px; border-bottom: var(--border-hairline) solid var(--color-border-hairline); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
/* Phone: every row becomes a card; the first cell leads it, the others carry their column name. */
@media (max-width: 600px) {
  .table { overflow: visible; border: 0; border-radius: 0; background: none; }
  .table table, .table tbody, .table tr, .table td { display: block; width: auto; }
  .table thead { display: none; }
  .table tr { margin-bottom: var(--space-3); padding: 14px var(--space-4) 10px; border: var(--border-hairline) solid var(--color-border-hairline); border-radius: var(--radius-l); background: var(--color-surface-raised); }
  .table td { padding: 0 0 var(--space-2); border: 0; }
  .table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 0.8125rem; line-height: 18px; font-weight: 600; color: var(--color-text-secondary); }
}
