/*
 * Pausa legal site — typography + layout for two text-heavy documents.
 *
 * Design intent:
 *  - Reads like a clean printed page, not a SaaS product page. Legal docs need
 *    to look serious and unembellished.
 *  - Uses system fonts so there's no extra round-trip on first paint.
 *  - Light + dark mode support via prefers-color-scheme; legal docs get
 *    consulted in the middle of the night sometimes.
 *  - Long paragraphs stay readable: max-width tuned for ~75 characters per
 *    line, generous line-height.
 */

:root {
    --bg: #fbf8f4;
    --surface: #ffffff;
    --ink: #1f1a14;
    --muted: #6b5f52;
    --hairline: #e6ddd0;
    --accent: #c5563d;
    --accent-tint: rgba(197, 86, 61, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161210;
        --surface: #1f1a17;
        --ink: #f3ebe0;
        --muted: #9a8e7f;
        --hairline: #2c2520;
        --accent: #e07a5f;
        --accent-tint: rgba(224, 122, 95, 0.14);
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header .brand {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-header nav {
    display: flex;
    gap: 18px;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.site-header nav a:hover {
    color: var(--accent);
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1 {
    font-size: 2.1rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    padding-top: 0.5em;
    border-top: 1px solid var(--hairline);
    margin-top: 2.5em;
}

h3 {
    font-size: 1.1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.8em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

ul, ol {
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.4em;
}

hr {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 2.5em 0;
}

/* Tables — the policy uses these for the data-collection matrix. Keep them
 * scannable but not garish. */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

@media (min-width: 720px) {
    table {
        display: table;
    }
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

th {
    background: var(--accent-tint);
    font-weight: 600;
    color: var(--ink);
}

tbody tr:hover {
    background: var(--accent-tint);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", monospace;
    font-size: 0.9em;
    padding: 2px 5px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 4px;
}

blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.5em 0;
    padding: 0.5em 1em;
    background: var(--accent-tint);
    color: var(--muted);
    font-style: italic;
}

.last-updated-footer {
    margin-top: 4em;
    padding-top: 1em;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    background: var(--surface);
}

.site-footer a {
    color: var(--muted);
}
