/*
 * static/css/privacy.css — the /privacy page (plan R-118; spec docs/plan/specs/privacy.md §6.2), loaded only by its
 * shell static/privacy.html after tokens.css and base.css (and before the profile's theme.css).
 *
 * A plain document in the app's "gold on graphite, ink on ivory": the canvas with its paper grain, one readable column
 * (68 characters), the display serif for the title, the token type scale, --c-on / --c-on-2 text and underlined
 * --c-accent-text links. Light and dark come from the tokens only (theme-boot.js sets data-theme from the saved
 * choice; dark by default). Phones keep a 16 px gutter and never scroll sideways (long URLs wrap anywhere). Every
 * selector is defined once (I7). Pinned by tests/browser/app/test_r118_privacy.py.
 */

/* base.css's body is the app shell (flex, one screen, overflow hidden): this page scrolls as a document. */
body.privacy-page { display: block; height: auto; min-height: 100vh; min-height: 100dvh; overflow: auto; }

/* The header's column lines up with the article's: the same font (so the same `ch`) and the same gutters. */
.privacy-header {
    max-width: calc(68ch + 2 * var(--space-4)); margin: 0 auto; padding: var(--space-6) var(--space-4) 0; font: var(--t-body-l);
}
.privacy-home {
    display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4);
    border-radius: var(--radius-pill); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-outline-variant);
    color: var(--c-on); font: var(--t-label-l); text-decoration: none;
    transition: background-color var(--dur-1) var(--ease-standard);
}
.privacy-home:hover { background: var(--c-hover); }

.privacy-main { padding: var(--space-7) var(--space-4) var(--space-8); }
.privacy-article {
    max-width: 68ch; margin: 0 auto; color: var(--c-on-2); font: var(--t-body-l); overflow-wrap: anywhere;
}
.privacy-article h1 { color: var(--c-on); font: var(--t-display-m); letter-spacing: -0.01em; text-wrap: balance; }
.privacy-article h2 {
    margin-top: var(--space-8); color: var(--c-on); font: 500 1.5rem / 1.25 var(--font-display); letter-spacing: -0.005em;
}
.privacy-article p, .privacy-article ul { margin-top: var(--space-4); }
.privacy-article .privacy-updated { margin-top: var(--space-2); color: var(--c-on-3); font: var(--t-body-s); }
.privacy-article ul { padding-left: 1.25em; }
.privacy-article ul ul { margin-top: var(--space-2); }
.privacy-article li + li { margin-top: var(--space-2); }
.privacy-article li::marker { color: var(--c-accent-text); }
.privacy-article strong { color: var(--c-on); font-weight: 600; }
.privacy-article a {
    color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; border-radius: var(--radius-xs);
}
.privacy-article a:hover { text-decoration-thickness: 2px; }

@media (max-width: 560px) {
    .privacy-header { padding-top: var(--space-4); }
    .privacy-main { padding-top: var(--space-6); }
    .privacy-article h2 { margin-top: var(--space-7); font-size: 1.3125rem; }
}

/* Forced colours: links keep their underline, the header link its edge. */
@media (forced-colors: active) {
    .privacy-article a { text-decoration: underline; }
    .privacy-home { border: 1px solid CanvasText; }
}
