:root {
    --ink: #20231f;
    --muted: #687069;
    --sage: #667d6d;
    --sage-dark: #405347;
    --cream: #f5f2eb;
    --paper: #fffdf9;
    --line: #dcd8cf;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a { color: var(--sage-dark); text-underline-offset: 0.18em; }
a:hover { color: #1f3528; }

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    color: #fff;
    background: var(--sage-dark);
    border-radius: 0.35rem;
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.legal-header {
    padding: 1.25rem clamp(1.1rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.92);
}

.legal-header-inner {
    max-width: 74rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
}

.brand {
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.back-link { font-size: 0.82rem; font-weight: 700; text-decoration: none; }

.legal-layout {
    width: min(100% - 2rem, 74rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: clamp(2rem, 5vw, 5rem);
    margin: clamp(2.5rem, 7vw, 6rem) auto;
}

.legal-article {
    padding: clamp(1.4rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    box-shadow: 0 1rem 3rem rgba(45, 55, 48, 0.06);
}

.eyebrow {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--sage);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 500; letter-spacing: -0.035em; }
h2 { margin: 2.5rem 0 0.6rem; font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { margin: 1.5rem 0 0.35rem; font-size: 1.05rem; }
p, li { color: #424842; }
ul { padding-left: 1.25rem; }
.updated { margin: 0.85rem 0 2rem; color: var(--muted); font-size: 0.82rem; }
.summary { font-size: 1.08rem; }
.notice {
    margin: 2rem 0;
    padding: 1rem 1.1rem;
    border-left: 0.25rem solid var(--sage);
    background: #eef2ed;
}

.legal-nav { position: sticky; top: 1rem; align-self: start; }
.legal-nav strong { display: block; margin-bottom: 0.75rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 0.42rem 0; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }

.legal-footer {
    padding: 2rem 1rem 3rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.8rem;
}

.legal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1rem; }

@media (max-width: 780px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; order: -1; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
    .legal-nav strong { flex-basis: 100%; }
    .legal-nav a { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
