:root {
    color-scheme: light;
    --legal-navy: #15243a;
    --legal-muted: #697386;
    --legal-orange: #c97031;
    --legal-green: #21805a;
    --legal-cream: #fffaf4;
    --legal-border: #eee5dc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.legal-shell {
    min-width: 320px;
    margin: 0;
    color: var(--legal-navy);
    background:
        radial-gradient(circle at 8% 2%, rgba(234, 160, 99, 0.13), transparent 25rem),
        radial-gradient(circle at 96% 18%, rgba(48, 147, 103, 0.08), transparent 28rem),
        #fff;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.legal-shell__header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(224, 211, 199, 0.72);
    background: rgba(255, 252, 248, 0.88);
    backdrop-filter: blur(18px);
}

.legal-shell__header-inner,
.legal-shell__footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.legal-shell__header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.legal-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.legal-shell__brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(145deg, #e49151, #c4672c);
    box-shadow: 0 9px 22px rgba(182, 92, 38, 0.22);
    font-size: 20px;
    font-weight: 900;
}

.legal-shell__brand strong,
.legal-shell__brand small {
    display: block;
}

.legal-shell__brand strong {
    letter-spacing: -0.025em;
    font-size: 17px;
    line-height: 1.15;
}

.legal-shell__brand small {
    margin-top: 2px;
    color: var(--legal-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-shell__header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--legal-muted);
    font-size: 11px;
    font-weight: 650;
}

.legal-shell__header-meta a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    color: #fff;
    border-radius: 12px;
    background: var(--legal-navy);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.legal-shell__header-meta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(21, 36, 58, 0.18);
}

.legal-shell__main {
    min-height: calc(100vh - 210px);
}

.legal-shell__footer {
    margin-top: 60px;
    color: #fff;
    background: var(--legal-navy);
}

.legal-shell__footer-inner {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.legal-shell__footer strong,
.legal-shell__footer span {
    display: block;
}

.legal-shell__footer strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.legal-shell__footer span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
}

.legal-shell__footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.legal-shell__footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.legal-shell__footer a:hover,
.legal-shell__footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(201, 112, 49, 0.3);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .legal-shell__header-inner,
    .legal-shell__footer-inner {
        width: min(100% - 24px, 1120px);
    }

    .legal-shell__header-inner {
        min-height: 64px;
    }

    .legal-shell__header-meta span {
        display: none;
    }

    .legal-shell__header-meta a {
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }

    .legal-shell__footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 0 34px;
    }

    .legal-shell__footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 460px) {
    .legal-shell__brand small {
        display: none;
    }

    .legal-shell__brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .legal-shell__header-meta a {
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .legal-shell__header-meta a {
        transition: none;
    }
}
