.legal-page .legal-hero {
    position: relative;
    min-height: 320px;
    padding: 150px 16px 72px;
    background-color: #0a1f3d;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.legal-page .legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 31, 61, 0.55) 0%, rgba(10, 31, 61, 0.78) 100%);
}

.legal-page .legal-hero__wrap {
    position: relative;
    z-index: 1;
    text-align: center;
}

.legal-page .legal-hero__title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.legal-page .legal-hero__trail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.legal-page .legal-hero__trail a {
    color: #fff;
    text-decoration: none;
}

.legal-page .legal-hero__trail a:hover {
    text-decoration: underline;
}

.legal-shell {
    background: #f4f7fb;
    padding: 56px 0 80px;
}

.legal-shell__grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.legal-toc__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.35;
}

.legal-toc a:hover,
.legal-toc a:focus {
    background: #eef4fb;
    color: #123a73;
}

.legal-doc {
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    padding: 40px 44px 48px;
}

.legal-doc__intro {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8eef5;
}

.legal-doc__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f7921f;
}

.legal-doc__intro h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
}

.legal-doc__intro p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.legal-article {
    margin: 0 0 34px;
    scroll-margin-top: 120px;
}

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

.legal-article h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f7921f;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #123a73;
}

.legal-article p,
.legal-article li {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.75;
}

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

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

.legal-article ul {
    margin: 8px 0 14px;
    padding-left: 1.2rem;
}

.legal-article li + li {
    margin-top: 6px;
}

.legal-article a {
    color: #123a73;
    font-weight: 600;
}

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

    .legal-toc {
        position: relative;
        top: 0;
        max-height: 240px;
    }

    .legal-doc {
        padding: 28px 20px 36px;
    }
}
