.legal-page.container-fluid {
    padding: 0;
    margin: 0;
}

.legal-hero {
    background: linear-gradient(
        0.63deg,
        rgba(28, 156, 208, 0.9) 0.56%,
        rgba(9, 28, 54, 0.92) 125.26%
    );
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 56px;
}

.legal-hero__inner {
    max-width: var(--mw-header);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.legal-hero h1 {
    color: #fff;
    font-family: "Raleway-Bold", sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.legal-hero__meta {
    color: rgba(255, 255, 255, 0.92);
    font-family: "Raleway-Medium", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 20px;
}

.legal-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.legal-hero__links a {
    color: #fff;
    text-decoration: none;
    font-family: "Raleway-Medium", sans-serif;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.legal-hero__links a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.legal-body {
    background-color: var(--lightgrey);
    border-bottom: 16px solid var(--orange);
    padding: 48px 20px 72px;
}

.legal-layout {
    max-width: var(--mw-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.legal-toc {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 24px rgba(9, 28, 54, 0.08);
    border: 1px solid rgba(9, 28, 54, 0.08);
}

.legal-toc__heading {
    font-family: "Raleway-Bold", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 16px;
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #091c36;
    text-decoration: none;
    font-family: "Raleway-Medium", sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.legal-toc a:hover {
    background-color: rgba(28, 156, 208, 0.1);
    color: #1c9cd0;
}

.legal-toc__group-label {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(9, 28, 54, 0.1);
    font-family: "Raleway-Bold", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c6b7a;
}

.legal-toc__group-label:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow: 0 4px 24px rgba(9, 28, 54, 0.08);
    border: 1px solid rgba(9, 28, 54, 0.08);
}

.legal-content > p.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2a3a4d;
    margin-bottom: 12px;
}

.legal-content .effective-date {
    display: inline-block;
    font-family: "Raleway-Medium", sans-serif;
    font-size: 0.9rem;
    color: #5c6b7a;
    background: var(--lightgrey);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.legal-content section {
    padding-top: 8px;
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: "Raleway-Bold", sans-serif;
    font-size: 1.45rem;
    color: #091c36;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(253, 145, 75, 0.35);
}

.legal-content p {
    font-family: "Raleway-Regular", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #2a3a4d;
    margin-bottom: 14px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul {
    margin: 0 0 16px;
    padding-left: 1.35rem;
}

.legal-content li {
    font-family: "Raleway-Regular", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2a3a4d;
    margin-bottom: 8px;
}

.legal-content a {
    color: #1c9cd0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #091c36;
}

.legal-sms-block {
    background: linear-gradient(
        135deg,
        rgba(28, 156, 208, 0.06) 0%,
        rgba(253, 145, 75, 0.08) 100%
    );
    border: 1px solid rgba(28, 156, 208, 0.2);
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    padding: 28px 28px 8px;
    margin-bottom: 8px;
}

.legal-sms-block > section:first-child {
    padding-top: 0;
}

.legal-sms-block > section h2 {
    border-bottom-color: rgba(28, 156, 208, 0.25);
}

.legal-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 4px;
}

.legal-callout__item {
    flex: 1 1 200px;
    background: #fff;
    border: 1px solid rgba(9, 28, 54, 0.1);
    border-radius: 10px;
    padding: 16px 18px;
}

.legal-callout__item strong {
    display: block;
    font-family: "Raleway-Bold", sans-serif;
    font-size: 1.1rem;
    color: var(--orange);
    margin-bottom: 6px;
}

.legal-callout__item span {
    font-family: "Raleway-Regular", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2a3a4d;
}

.legal-contact-card {
    background: #091c36;
    color: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    margin-top: 8px;
}

.legal-contact-card h2 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.legal-contact-card p {
    color: rgba(255, 255, 255, 0.9);
}

.legal-contact-card a {
    color: #7dd3fc;
}

.legal-contact-card a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .legal-toc {
        display: none;
    }

    .legal-content {
        padding: 28px 22px;
    }
}

@media (max-width: 575px) {
    .legal-hero {
        padding-top: 88px;
        min-height: 220px;
    }

    .legal-callout {
        flex-direction: column;
    }
}
