/*
 * Shared styles for the static Pennywise legal pages served at
 * https://pennywise.live/legal/{impressum,datenschutz,agb}.
 *
 * Mobile-first; the `max-width` on the root cap mirrors the in-app content
 * cap so visitors who jump from the app to a legal page do not see a
 * jarring desktop-wide column. The brand blue matches the in-app primary
 * (`PennywiseColors.primary`) for visual continuity.
 */

:root {
    --bg: #f6f6f8;
    --surface: #ffffff;
    --text: #1e1e24;
    --text-muted: #5a5a66;
    --divider: #e2e3eb;
    --brand: #4f6ef7;
    --brand-dark: #3550c9;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    padding: 24px 16px 64px;
}

main {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 32px clamp(20px, 4vw, 40px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

header.brand {
    max-width: 720px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    font-size: 14px;
}

header.brand a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

h1 {
    font-size: 26px;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 18px;
    margin: 32px 0 8px;
    border-top: 1px solid var(--divider);
    padding-top: 24px;
}

h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

h3 {
    font-size: 15px;
    margin: 20px 0 6px;
    color: var(--text);
}

p, ul, ol {
    margin: 8px 0;
}

ul, ol {
    padding-left: 24px;
}

li + li {
    margin-top: 4px;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

.tbd {
    background: #fff5d4;
    border: 1px solid #f1d97a;
    color: #6a4b00;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.notice {
    background: #f0f3ff;
    border-left: 3px solid var(--brand);
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--text);
}

.muted {
    color: var(--text-muted);
}

footer.legal-footer {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

footer.legal-footer a {
    margin: 0 8px;
}
