:root {
    --navy: #06162a;
    --navy-soft: #10243b;
    --blue: #1677e8;
    --lime: #aef42c;
    --text: #172033;
    --muted: #687386;
    --line: #dfe6ef;
    --surface: #ffffff;
    --background: #f4f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: var(--blue);
}

.legal-header {
    min-height: 76px;
    padding: 16px max(24px, calc((100vw - 1080px) / 2));
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 30px;
}

.brand-mark i {
    display: block;
    width: 8px;
    border-radius: 2px;
    transform: skew(-8deg);
}

.brand-mark i:nth-child(1) {
    height: 22px;
    background: var(--lime);
}

.brand-mark i:nth-child(2) {
    height: 30px;
    background: #d8ff48;
}

.brand-mark i:nth-child(3) {
    height: 25px;
    background: #16bfe5;
}

.portal-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.22);
    padding: 10px 16px;
    border-radius: 10px;
}

.legal-shell {
    width: min(100% - 32px, 920px);
    margin: 48px auto;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 64px);
    box-shadow: 0 18px 60px rgba(18, 38, 63, .08);
}

.eyebrow {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 800;
}

h1 {
    margin: 6px 0 2px;
    color: var(--navy);
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
}

.updated {
    margin: 8px 0 40px;
    color: var(--muted);
    font-size: 14px;
}

section {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

h2 {
    color: var(--navy-soft);
    font-size: 21px;
    line-height: 1.3;
}

p, li {
    color: #4d596c;
}

li {
    margin-bottom: 8px;
}

.callback-status {
    padding: 24px;
    border-radius: 14px;
}

.callback-status.success {
    background: #effbea;
    border: 1px solid #b9e9a4;
}

.callback-status.pending {
    background: #eef5ff;
    border: 1px solid #c9ddfa;
}

.primary-button {
    display: inline-block;
    padding: 12px 18px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
}

.legal-footer {
    width: min(100% - 32px, 1080px);
    margin: 0 auto 40px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.legal-footer div {
    display: flex;
    flex-direction: column;
}

.legal-footer nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer a {
    text-decoration: none;
}

@media (max-width: 760px) {
    .legal-header {
        padding: 14px 18px;
    }

    .legal-shell {
        margin: 22px auto;
    }

    .legal-card {
        border-radius: 14px;
    }

    .legal-footer {
        grid-template-columns: 1fr;
    }
}
