.legal-page {
    width: 100%;
    min-height: 100vh;
    padding: clamp(92px, 12vh, 132px) 18px 112px;
    color: #f4fdff;
    box-sizing: border-box;
}

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

.legal-kicker {
    margin: 0 0 8px;
    color: #8af0ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-shell h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.legal-version {
    margin: 0 0 24px;
    color: #bdefff;
    font-size: 14px;
}

.legal-document {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(6, 171, 212, 0.36);
    border-radius: 18px;
    background: rgba(7, 14, 19, 0.84);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.legal-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.legal-section:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
}

.legal-section p,
.legal-section li {
    color: #d9f7ff;
    font-size: 15px;
    line-height: 1.65;
}

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

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

.legal-section ul {
    margin: 0;
    padding-left: 20px;
}

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

.legal-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(6, 171, 212, 0.50);
    border-radius: 10px;
    background: rgba(6, 171, 212, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.legal-action:hover,
.legal-action:focus-visible {
    background: rgba(6, 171, 212, 0.24);
    color: #ffffff;
    outline: none;
}

body.light-theme .legal-page {
    color: #102027;
}

body.light-theme .legal-kicker {
    color: #006b8a;
}

body.light-theme .legal-shell h1,
body.light-theme .legal-section h2 {
    color: #102027;
}

body.light-theme .legal-version,
body.light-theme .legal-section p,
body.light-theme .legal-section li {
    color: #24434c;
}

body.light-theme .legal-document {
    border-color: rgba(0, 105, 135, 0.22);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(14, 49, 60, 0.12);
}

body.light-theme .legal-section {
    border-top-color: rgba(0, 74, 94, 0.14);
}

body.light-theme .legal-action {
    border-color: rgba(0, 105, 135, 0.34);
    background: rgba(0, 153, 190, 0.10);
    color: #0b3540;
}

body.light-theme .legal-action:hover,
body.light-theme .legal-action:focus-visible {
    background: rgba(0, 153, 190, 0.18);
    color: #061f26;
}

@media (max-width: 640px) {
    .legal-page {
        padding-inline: 12px;
    }

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