/* Legal pages (privacy policy): the sales page's world (home.css) set as one readable column. */
.doc {
    max-width: calc(68ch + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 104px);
    color: var(--body);
}

.doc h1 {
    color: var(--ink);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1;
}

.doc-meta { margin: 16px 0 0; font-weight: 600; color: var(--ink); }

.doc-lead { margin: 28px 0 0; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }

.doc h2 {
    margin: 56px 0 0;
    padding-top: 20px;
    border-top: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    scroll-margin-top: 16px;
}

.doc h3 { margin: 28px 0 0; color: var(--ink); font-weight: 700; font-size: 1.0625rem; }

.doc p, .doc ul, .doc ol { margin: 12px 0 0; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); font-weight: 600; }

.doc code {
    font: 500 0.875em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

/* Contents: a light card so the section list reads as navigation, not body text. */
.doc-toc {
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--white);
}
.doc-toc h2 { margin: 0; padding-top: 0; border: 0; font-size: 1.0625rem; }
.doc-toc ol { columns: 2; column-gap: 32px; }
.doc-toc li { break-inside: avoid; }
.doc-toc a { font-weight: 500; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

/* Tables scroll sideways on narrow screens rather than squeezing the text. */
.doc-table { margin-top: 16px; padding: 8px 12px; overflow-x: auto; border-radius: 16px; background: var(--white); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.doc th, .doc td { padding: 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.doc tbody tr + tr td { border-top: 1px solid var(--line); }

.doc-foot {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding: 32px var(--gutter);
    font-size: 0.875rem;
}
.doc-foot p {
    max-width: calc(68ch + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.doc-foot p + p { margin-top: 8px; }
.doc-foot a { color: var(--on-dark); font-weight: 600; margin-right: 20px; }

@media (max-width: 640px) {
    .doc-toc ol { columns: 1; }
}
