:root {
    --ink: #111827;
    --ink-soft: #202737;
    --purple: #1f1e5b;
    --purple-deep: #16154a;
    --orange: #f0790c;
    --orange-light: #f4a45b;
    --paper: #f5f6fa;
    --white: #ffffff;
    --text: #2d3444;
    --muted: #687084;
    --line: #dde1e9;
    --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--text);
    font: 16px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
section[id] { scroll-margin-top: 108px; }
.container { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 78px;
    background: rgba(17, 24, 39, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
    transition: transform .35s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
    width: min(1240px, calc(100% - 2rem));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.8rem;
}
.main-nav { display: flex; align-items: center; gap: 1.65rem; }
.main-nav a {
    color: #d7dbea;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.main-nav a[aria-current="page"],
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--orange-light); }
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.15rem;
    border-radius: 10px;
    background: var(--orange);
    color: var(--white);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}
.header-cta:hover, .header-cta:focus-visible { background: #d96c08; transform: translateY(-2px); }
.hero-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    transform: rotate(-45deg);
    transform-origin: center;
    animation: float 6s ease-in-out infinite;
}
.hero-logo img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(68%) sepia(64%) saturate(2136%) hue-rotate(333deg) brightness(101%) contrast(91%) drop-shadow(0 2px 8px rgba(17,24,39,.18));
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 10.5rem 0 5rem;
    color: var(--white);
    background-color: var(--purple);
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 64px 64px;
}
.legal-hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -160px;
    top: 20px;
    border: 1px solid rgba(244, 164, 91, .36);
    border-radius: 50%;
    box-shadow: 0 0 0 75px rgba(240,121,12,.028), 0 0 0 150px rgba(240,121,12,.02);
}
.legal-hero .container { position: relative; z-index: 1; }
.eyebrow {
    color: var(--orange-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.legal-hero h1 {
    max-width: 850px;
    margin: .65rem 0 1rem;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.06em;
}
.legal-hero p:not(.eyebrow) { max-width: 690px; color: #d9dbea; font-size: 1.08rem; }
.updated { display: block; margin-top: 1.3rem; color: #aeb5c8; font-size: .86rem; }

.legal-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);
    justify-content: space-between;
    gap: 5rem;
    padding-block: 5rem 6.5rem;
}
.legal-toc {
    position: sticky;
    top: 110px;
    align-self: start;
    padding-left: 1.25rem;
    border-left: 2px solid var(--orange);
}
.legal-toc strong {
    display: block;
    margin-bottom: .8rem;
    color: var(--purple);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.legal-toc a {
    display: block;
    padding: .28rem 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
    text-decoration: none;
}
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--orange); }
.legal-content > p:first-child { font-size: 1.15rem; color: #424b5d; }
.legal-content section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.legal-content section:first-of-type { padding-top: 2.6rem; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 {
    margin-bottom: .85rem;
    color: var(--purple);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}
.legal-content h3 { margin: 1.3rem 0 .45rem; color: var(--ink); font-size: 1.02rem; }
.legal-content p + p { margin-top: .85rem; }
.legal-content ul { margin: .85rem 0 0 1.25rem; }
.legal-content li { padding-left: .35rem; margin-bottom: .55rem; }
.legal-content a { color: #b65000; font-weight: 650; text-underline-offset: 3px; }
.callout {
    margin: 1.8rem 0 .2rem;
    padding: 1.35rem 1.5rem;
    border-left: 4px solid var(--orange);
    background: var(--white);
    box-shadow: 0 12px 32px rgba(31,30,91,.07);
}
.callout strong { color: var(--purple); }

.site-footer { padding: 3.3rem 0 2rem; color: #c9ceda; background: #0d1421; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-brand img { width: 92px; height: auto; }
.footer-signature { margin-top: .25rem; color: var(--orange-light); font-family: "Bradley Hand", "Segoe Print", cursive; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.2rem; }
.footer-links a { color: #c9ceda; font-size: .88rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--orange-light); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #929aac; }

@keyframes float {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-10px); }
}

@media (max-width: 820px) {
    .hero-logo { display: none; }
    .header-inner { justify-content: space-between; }
    .main-nav a:nth-child(3),
    .main-nav a:nth-child(4),
    .main-nav a:nth-child(5) { display: none; }
    .legal-shell { grid-template-columns: 1fr; gap: 2.5rem; }
    .legal-toc { position: static; columns: 2; column-gap: 2rem; }
    .legal-toc strong { column-span: all; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 2rem, var(--max)); }
    .header-inner { width: calc(100% - 2rem); gap: .75rem; }
    .main-nav { gap: 1rem; }
    .main-nav a { font-size: .82rem; }
    .header-cta { padding-inline: .9rem; font-size: .82rem; }
    .legal-hero { padding: 8.5rem 0 3.5rem; }
    .legal-shell { padding-block: 3.5rem 4.5rem; }
    .legal-toc { columns: 1; }
    .footer-top { flex-direction: column; }
    .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-logo { animation: none; }
    .header-cta { transition: none; }
    .site-header { transition: none; }
}
