:root {
    --bg: #FFFFFF;
    --text: #0b1220;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #0d4d9f;
    --primary-ink: #eaf2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo-link {
    text-decoration: none;
    display: block;
}

header .logo {
    height: 48px;
    width: auto;
    display: block;
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
    font-size: 0.9375rem;
}

header nav a:hover,
header nav a:focus {
    opacity: 1;
}

main.legal-scope {
    max-width: 900px;
    margin: 28px auto;
    padding: 0 20px 48px;
}

h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text);
}

h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    scroll-margin-top: 20px;
}

h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.last-updated {
    color: var(--muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.callout {
    background: var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.callout h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.callout-inner {
    background: var(--primary-ink);
    border-radius: 8px;
    padding: 1.5rem;
}

.callout-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.callout-inner li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text);
}

.callout-inner li strong {
    color: var(--primary);
}

.toc {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-grid li {
    margin: 0;
}

.toc-grid a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem;
}

.toc-grid a:hover,
.toc-grid a:focus {
    text-decoration: underline;
}

section {
    margin-bottom: 2.5rem;
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

footer p {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

footer nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}

footer nav a:hover,
footer nav a:focus {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav {
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 17px;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .callout {
        padding: 1.5rem;
    }
    
    footer nav {
        gap: 1rem;
    }
}
