.legal-page {
    min-height: 100vh;
    padding: 28px clamp(18px, 4vw, 54px) 120px;
    position: relative;
    isolation: isolate;
}

.legal-shell {
    width: min(980px, 100%);
    margin: clamp(34px, 7vw, 78px) auto 0;
}

.legal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-xl, 38px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 242, 0.18));
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(42px) saturate(1.58) contrast(1.08) brightness(1.05);
    -webkit-backdrop-filter: blur(42px) saturate(1.58) contrast(1.08) brightness(1.05);
    padding: clamp(22px, 4vw, 44px);
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255,255,255,.78), rgba(255,255,255,.12) 42%, rgba(23,63,115,.07));
    opacity: .72;
}

.legal-card > * {
    position: relative;
    z-index: 1;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.28);
    color: var(--accent, #173f73);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--shadow-soft);
}

.legal-card h1 {
    max-width: 820px;
    margin: 22px 0 12px;
    color: var(--text-main, #171717);
    font-size: clamp(32px, 6vw, 62px);
    font-weight: 800;
    line-height: .98;
}

.legal-lead {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--text-muted, #4f4a44);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 600;
    line-height: 1.65;
}

.legal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 30px;
}

.legal-meta div,
.legal-section {
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: var(--radius-md, 20px);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-soft);
}

.legal-meta div {
    padding: 14px 16px;
}

.legal-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #4f4a44);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-meta strong {
    color: var(--text-main, #171717);
    font-size: 15px;
    line-height: 1.35;
}

.legal-sections {
    display: grid;
    gap: 14px;
}

.legal-section {
    padding: clamp(18px, 2.6vw, 26px);
}

.legal-section h2 {
    margin: 0 0 12px;
    color: var(--accent, #173f73);
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 800;
    line-height: 1.2;
}

.legal-section p {
    margin: 0 0 10px;
    color: var(--text-main, #171717);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.72;
}

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

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.legal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.30);
    color: var(--text-main, #171717);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.legal-action:hover,
.legal-action:focus-visible {
    transform: translateY(-2px);
    background: rgba(23, 63, 115, 0.10);
    color: var(--accent, #173f73);
    outline: none;
}

@media (max-width: 700px) {
    .legal-page {
        padding: 22px 16px 120px;
    }

    .legal-shell {
        margin-top: 28px;
    }

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

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

    .legal-action {
        width: 100%;
    }
}