.legal-page {
    --legal-ink: #10213d;
    --legal-muted: #5c6b82;
    --legal-line: #dbe5f1;
    --legal-blue: #185bd7;
    --legal-blue-dark: #103f9a;
    color: var(--legal-ink);
    background: #f7f9fc;
}

.legal-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(89, 171, 255, .34), transparent 25%),
        linear-gradient(125deg, #092653 0%, #114ca8 55%, #1767d8 100%);
}

.legal-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -190px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025);
}

.legal-hero-terms {
    background:
        radial-gradient(circle at 82% 18%, rgba(131, 184, 255, .3), transparent 25%),
        linear-gradient(125deg, #102347 0%, #17438c 55%, #285eb7 100%);
}

.legal-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.68);
    font-size: .78rem;
    font-weight: 600;
}

.legal-breadcrumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.legal-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.legal-breadcrumb i { font-size: .58rem; }

.legal-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 60px;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #d8eaff;
    background: rgba(255,255,255,.08);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.05;
}

.legal-hero p {
    max-width: 750px;
    margin: 0;
    color: rgba(255,255,255,.79);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.legal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: rgba(255,255,255,.66);
    font-size: .78rem;
    font-weight: 600;
}

.legal-hero-symbol {
    display: grid;
    width: 136px;
    height: 136px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 36px;
    color: #fff;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 24px 55px rgba(0,18,55,.25);
    font-size: 3.4rem;
    transform: rotate(3deg);
}

.legal-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 46px;
    padding-block: 46px 70px;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--legal-line);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 35px rgba(20,47,87,.06);
}

.legal-nav strong {
    padding: 5px 9px 12px;
    color: #91a0b5;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-nav a {
    padding: 9px;
    border-radius: 8px;
    color: #4f6078;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.legal-nav a:hover, .legal-nav a:focus-visible {
    color: var(--legal-blue);
    background: #edf4ff;
    transform: translateX(2px);
}

.legal-content { min-width: 0; }

.legal-summary {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 19px 21px;
    border: 1px solid #cfe0fa;
    border-radius: 14px;
    background: #edf5ff;
}

.legal-summary > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--legal-blue);
}

.legal-summary p { margin: 0; color: #354d70; font-size: .9rem; line-height: 1.7; }

.legal-section {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 20px;
    padding: 31px 0;
    border-bottom: 1px solid var(--legal-line);
    scroll-margin-top: 92px;
}

.legal-section-number {
    padding-top: 3px;
    color: #aac0dd;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.legal-section h2 {
    margin: 0 0 13px;
    color: var(--legal-ink);
    font-size: clamp(1.14rem, 2vw, 1.38rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.legal-section p, .legal-section li {
    color: var(--legal-muted);
    font-size: .91rem;
    line-height: 1.78;
}

.legal-section p { margin: 0 0 10px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 9px 0 0; padding-left: 1.2rem; }
.legal-section li { margin-bottom: 7px; padding-left: 4px; }
.legal-section li::marker { color: var(--legal-blue); }
.legal-section strong { color: #263e61; }

.legal-contact { border-bottom: 0; }
.legal-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.legal-contact-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--legal-line);
    border-radius: 12px;
    color: #263e61;
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.legal-contact-grid a:hover { border-color: #a9c8f5; box-shadow: 0 8px 22px rgba(24,91,215,.09); transform: translateY(-2px); }
.legal-contact-grid i { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--legal-blue); background: #edf4ff; }
.legal-contact-grid span { min-width: 0; overflow-wrap: anywhere; }
.legal-contact-grid small { display: block; margin-bottom: 2px; color: #8b9bb0; font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.legal-related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 19px 22px;
    border-radius: 14px;
    color: #718198;
    background: #eaf0f7;
    font-size: .82rem;
    font-weight: 700;
}

.legal-related a { color: var(--legal-blue-dark); text-decoration: none; }
.legal-related a:hover { text-decoration: underline; }
.legal-related i { margin-left: 7px; font-size: .7rem; }

@media (max-width: 850px) {
    .legal-hero { padding: 30px 0 44px; }
    .legal-hero-grid { grid-template-columns: 1fr; gap: 0; }
    .legal-hero-symbol { display: none; }
    .legal-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
    .legal-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-nav strong { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .legal-shell { width: min(100% - 26px, 1180px); }
    .legal-breadcrumb { margin-bottom: 26px; }
    .legal-hero h1 { font-size: 2.25rem; }
    .legal-nav { grid-template-columns: 1fr; }
    .legal-section { grid-template-columns: 1fr; gap: 7px; padding: 26px 0; }
    .legal-section-number { padding: 0; }
    .legal-summary { grid-template-columns: 34px 1fr; padding: 16px; }
    .legal-summary > i { width: 34px; height: 34px; border-radius: 9px; }
    .legal-contact-grid { grid-template-columns: 1fr; }
    .legal-related { align-items: flex-start; flex-direction: column; gap: 8px; }
}
