:root {
    color-scheme: light dark;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --accent: #111111;
    --text: #18181b;
    --muted: #52525b;
    --bg: #f4f4f5;
    --surface: #ffffff;
    --card-bg: #fafafa;
    --border: rgba(24, 24, 27, 0.1);
    --footer-bg: #111111;
    --footer-text: rgba(255, 255, 255, 0.78);
    --footer-muted: rgba(255, 255, 255, 0.75);
    --shadow: 0 12px 32px rgba(24, 24, 27, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #f4f4f5;
        --text: #f4f4f5;
        --muted: #a1a1aa;
        --bg: #09090b;
        --surface: #18181b;
        --card-bg: #27272a;
        --border: rgba(212, 212, 216, 0.18);
        --footer-bg: #000000;
        --footer-text: rgba(255, 255, 255, 0.85);
        --footer-muted: rgba(255, 255, 255, 0.65);
        --shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    color: var(--muted);
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1rem;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

main {
    flex: 1;
    padding: 3rem 0;
}

section {
    background: var(--surface);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p {
    color: var(--muted);
    line-height: 1.6;
}

section p:last-child {
    margin-bottom: 0;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text);
}

pre {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.cta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.cta {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
}

.cta strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cta a {
    color: var(--accent);
    font-weight: 600;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.site-footer .container {
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
}

.small {
    font-size: 0.85rem;
    color: var(--footer-muted);
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-stack section {
    margin: 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
}

.policy-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.policy-table th,
.policy-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.policy-table thead th {
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.policy-table tbody th {
    width: 34%;
    color: var(--text);
    font-size: 0.95rem;
}

.policy-table tr:last-child th,
.policy-table tr:last-child td {
    border-bottom: 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.checklist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.issues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.issue {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: var(--card-bg);
}

.issue ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    section {
        padding: 1.5rem;
    }
}
