:root {
    color-scheme: light;
    --cedar: #315d50;
    --cedar-dark: #173d34;
    --cedar-soft: #dce9e3;
    --porch: #f7f3ea;
    --paper: #fffdf8;
    --ink: #1d2824;
    --muted: #52615b;
    --tile: #a9553e;
    --sun: #f3c95f;
    --line: #d4ddd8;
    --shadow: 0 18px 50px rgba(23, 61, 52, 0.1);
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(243, 201, 95, 0.24), transparent 24rem),
        var(--porch);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--cedar-dark);
    cursor: pointer;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--tile);
}

a:focus-visible {
    border-radius: 0.3rem;
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: var(--ink);
    color: white;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    border-bottom: 1px solid rgba(49, 93, 80, 0.14);
    background: rgba(247, 243, 234, 0.92);
    backdrop-filter: blur(14px);
}

.nav,
.footer-inner {
    width: min(70rem, calc(100% - 2rem));
    margin: 0 auto;
}

.nav {
    display: flex;
    min-height: 5rem;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cedar-dark);
    text-decoration: none;
}

.brand .brand-mark {
    width: 1.9rem;
    height: auto;
    border-radius: 0;
}

.brand .brand-wordmark {
    width: 7.5rem;
    height: auto;
    border-radius: 0;
}

.nav-links,
.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-links a,
.footer-links a {
    font-weight: 650;
}

.language-link {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    text-decoration: none;
}

.legal-layout {
    width: min(50rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) 0 5rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--tile);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--cedar-dark);
    line-height: 1.15;
}

h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.45rem, 7vw, 4.6rem);
    letter-spacing: -0.04em;
}

h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}

h3 {
    margin: 1.4rem 0 0.45rem;
    font-size: 1.05rem;
}

.lede {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.16rem;
}

.legal-meta {
    display: flex;
    gap: 0.65rem 1.4rem;
    margin: 1.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.legal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 2rem 0 2.75rem;
}

.summary-item,
.legal-section,
.legal-cta {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow);
}

.summary-item {
    padding: 1.1rem;
}

.summary-item strong,
.summary-item span {
    display: block;
}

.summary-item strong {
    color: var(--cedar-dark);
}

.summary-item span {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-section,
.legal-cta {
    margin-top: 1rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    scroll-margin-top: 2rem;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child,
.legal-cta p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.4rem;
}

.legal-section li + li {
    margin-top: 0.55rem;
}

.legal-cta {
    border-color: rgba(49, 93, 80, 0.38);
    background:
        linear-gradient(135deg, rgba(220, 233, 227, 0.95), rgba(255, 253, 248, 0.95));
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.45rem;
    padding: 0.72rem 1.1rem;
    border-radius: 0.85rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background: var(--cedar);
    color: white;
    box-shadow: 0 9px 22px rgba(49, 93, 80, 0.2);
}

.button-primary:hover {
    background: var(--cedar-dark);
    color: white;
}

.notice {
    border-left: 0.3rem solid var(--sun);
    padding: 0.8rem 1rem;
    background: rgba(243, 201, 95, 0.15);
}

.site-footer {
    border-top: 1px solid rgba(49, 93, 80, 0.18);
    background: var(--cedar-dark);
    color: white;
}

.footer-inner {
    display: flex;
    min-height: 8rem;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.site-footer .brand,
.site-footer a {
    color: white;
}

.site-footer .brand {
    padding: 0.45rem 0.6rem;
    border-radius: 0.65rem;
    background: var(--porch);
}

.site-footer a:hover {
    color: var(--sun);
}

@media (max-width: 760px) {
    .nav,
    .footer-inner {
        width: min(100% - 1.25rem, 50rem);
        align-items: flex-start;
        flex-direction: column;
        padding: 0.9rem 0;
    }

    .nav-links,
    .footer-links {
        width: 100%;
        margin-left: 0;
        gap: 0.7rem 1rem;
    }

    .legal-layout {
        width: min(100% - 1.25rem, 50rem);
        padding-top: 3rem;
    }

    .legal-summary {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
