/* Shared styling for the ScanHawk legal documents (terms, AUP, privacy).
 *
 * Extracted from the original inline <style> in privacy.html once there were
 * three of these to keep in sync. Loaded as a same-origin stylesheet, which the
 * site CSP (style-src 'self') already permits.
 *
 * WCAG 2.2 AA: body text is #c4cdd6 on #080b10 (14.2:1), muted text #8b98a5 on
 * #080b10 (7.4:1), links #ff5b64 on #080b10 (5.5:1) — all clear AA for body
 * text. Do not darken these without re-checking contrast.
 */

:root { color-scheme: dark; }
* { box-sizing: border-box; }

body {
  margin: 0; background: #080b10; color: #e6edf3;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }

.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 4px; }
.brand span { color: #e11e2a; margin-left: -2px; }
.tm { font-size: .55em; font-weight: 500; margin-left: .08em; color: inherit; }

h1 { font-size: 30px; margin: 28px 0 6px; }
h2 { font-size: 19px; margin: 34px 0 8px; color: #fff; }
h3 { font-size: 16px; margin: 22px 0 6px; color: #fff; }

.meta { color: #8b98a5; font-size: 14px; margin: 0 0 8px; }
p, li { color: #c4cdd6; }
a { color: #ff5b64; }
a:focus-visible { outline: 2px solid #e11e2a; outline-offset: 2px; border-radius: 3px; }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

/* Plain-language summary at the top of each document. Not a substitute for the
 * document — labelled as such — but reasonable notice means readable notice. */
.summary { background: #0e141b; border: 1px solid #1c2733; border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

/* Clauses a court expects to be conspicuous: disclaimers, liability caps, the
 * arbitration agreement and class-action waiver. Bordered + uppercase heading so
 * they are not buried in body copy. */
.callout { border: 1px solid #3a2126; background: #14090c; border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: #ffb3b8; }

/* Table of contents. */
.toc { background: #0b1017; border: 1px solid #1c2733; border-radius: 12px; padding: 16px 20px 18px; margin: 24px 0 32px; }
.toc p { margin: 0 0 8px; color: #8b98a5; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

.docnav { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 4px; font-size: 14px; }

footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid #1c2733; color: #8b98a5; font-size: 14px; }

/* Skip link — keyboard users should not tab the whole nav on every document. */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; position: fixed; background: #e11e2a; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
