:root {
    --legal-primary: #f08000;
    --legal-primary-dark: #b85e00;
    --legal-secondary: #223166;
    --legal-text: #20283a;
    --legal-muted: #5f6b7f;
    --legal-border: #dfe5ef;
    --legal-surface: #ffffff;
    --legal-background: #f5f7fb;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--legal-background);
    color: var(--legal-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--legal-secondary);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--legal-primary-dark);
}

a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(240, 128, 0, .35);
    outline-offset: 3px;
}

.legal-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--legal-secondary);
    color: #fff;
    transform: translateY(-180%);
}

.legal-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.legal-header {
    border-bottom: 1px solid rgba(223, 229, 239, .9);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 24px rgba(34, 49, 102, .06);
}

.legal-header-inner,
.legal-footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

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

.legal-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.legal-brand img,
.legal-company img {
    display: block;
    width: auto;
    object-fit: contain;
}

.legal-brand img {
    height: 44px;
}

.legal-nav,
.legal-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-nav a {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--legal-secondary);
    font-size: .93rem;
    font-weight: 650;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
    background: #fff2e3;
    color: #9b5000;
}

.legal-main {
    width: min(940px, calc(100% - 40px));
    margin: 48px auto 64px;
}

.legal-article {
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--legal-border);
    border-radius: 24px;
    background: var(--legal-surface);
    box-shadow: 0 24px 70px rgba(34, 49, 102, .08);
}

.legal-article h1 {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--legal-secondary);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.legal-updated {
    display: inline-block;
    margin: 0 0 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff2e3;
    color: #814300;
    font-size: .88rem;
}

.legal-article h2 {
    margin: 38px 0 12px;
    padding-top: 6px;
    color: var(--legal-secondary);
    font-size: clamp(1.28rem, 3vw, 1.58rem);
    line-height: 1.3;
}

.legal-article h2::before {
    display: inline-block;
    width: 5px;
    height: .9em;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--legal-primary);
    content: "";
    vertical-align: -.04em;
}

.legal-article p {
    margin: 12px 0;
}

.legal-article ul {
    margin: 14px 0 20px;
    padding-left: 25px;
}

.legal-article li {
    margin: 6px 0;
    padding-left: 3px;
}

.legal-article li::marker {
    color: var(--legal-primary);
}

.legal-article address {
    margin: 14px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--legal-primary);
    border-radius: 0 12px 12px 0;
    background: #f8f9fc;
    font-style: normal;
}

.legal-related-link {
    margin-top: 26px !important;
    padding: 16px 18px;
    border: 1px solid #f5d2a9;
    border-radius: 12px;
    background: #fffaf4;
}

.legal-footer {
    border-top: 1px solid #32457e;
    background: var(--legal-secondary);
    color: #e8ecf7;
}

.legal-footer-inner {
    min-height: 190px;
    padding: 38px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.legal-company img {
    height: 38px;
    margin-bottom: 14px;
    border-radius: 5px;
    background: #fff;
    padding: 3px 6px;
}

.legal-company address {
    font-size: .9rem;
    font-style: normal;
    line-height: 1.6;
}

.legal-footer a {
    color: #fff;
}

.legal-footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legal-footer-links a {
    padding: 7px 9px;
    font-size: .9rem;
}

@media (max-width: 760px) {
    .legal-header-inner {
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .legal-brand img {
        height: 38px;
    }

    .legal-nav {
        width: 100%;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .legal-nav a {
        flex: 0 0 auto;
        padding: 8px 9px;
        font-size: .86rem;
    }

    .legal-main {
        width: min(100% - 24px, 940px);
        margin: 24px auto 40px;
    }

    .legal-article {
        border-radius: 18px;
    }

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

    .legal-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .legal-header-inner,
    .legal-footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .legal-article {
        padding: 24px 20px;
    }
}

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