:root {
    --legal-bg: #02060c;
    --legal-panel: rgba(8, 17, 29, 0.74);
    --legal-panel-strong: rgba(11, 23, 39, 0.92);
    --legal-border: rgba(255, 255, 255, 0.09);
    --legal-text: #f5f7fa;
    --legal-muted: #8f9aaa;
    --legal-accent: #4f8cff;
    --legal-accent-soft: rgba(79, 140, 255, 0.12);
}

html {
    background: var(--legal-bg);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% -10%, rgba(31, 87, 165, .16), transparent 36rem),
        var(--legal-bg);
    color: var(--legal-text);
    font-family: "Inter", sans-serif;
}

.legal-page {
    min-height: 100vh;
}

.legal-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--legal-border);
    background: rgba(2, 6, 12, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.legal-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.legal-brand__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.legal-brand__name {
    width: 176px;
    max-height: 30px;
    object-fit: contain;
}

.legal-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-header__actions a {
    color: var(--legal-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}

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

.legal-header__actions .legal-header__login {
    padding: 11px 18px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
}

.legal-main {
    padding: 90px 0 110px;
}

.legal-hero {
    max-width: 820px;
    padding-bottom: 70px;
}

.legal-kicker {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--legal-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.legal-hero h1 {
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 700;
}

.legal-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: #aab4c2;
    font-size: 18px;
    line-height: 1.8;
}

.legal-meta {
    margin-top: 28px;
    color: #687587;
    font-size: 13px;
}

.legal-content {
    border-top: 1px solid var(--legal-border);
}

.legal-section {
    display: grid;
    grid-template-columns: 90px minmax(0, 760px);
    gap: 40px;
    padding: 58px 0;
    border-bottom: 1px solid var(--legal-border);
}

.legal-section > div {
    min-width: 0;
}

.legal-number {
    padding-top: 5px;
    color: #4d5b6e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.legal-section h2 {
    margin: 0 0 25px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.legal-section h3 {
    margin: 30px 0 10px;
    color: #dce4ed;
    font-size: 16px;
    font-weight: 700;
}

.legal-section p,
.legal-section li {
    color: #9aa6b5;
    font-size: 15px;
    line-height: 1.85;
}

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

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

.legal-section li + li {
    margin-top: 8px;
}

.legal-section a {
    color: #8bb2ff;
}

.legal-section--accent {
    position: relative;
}

.legal-section--accent::before {
    content: "";
    position: absolute;
    inset: 20px -28px;
    z-index: -1;
    border: 1px solid rgba(79,140,255,.14);
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        rgba(79,140,255,.07),
        rgba(79,140,255,.015)
    );
}

.legal-callout {
    margin-top: 25px;
    padding: 18px 20px;
    border-left: 2px solid var(--legal-accent);
    background: var(--legal-accent-soft);
    color: #c9d9f5;
    font-size: 14px;
    line-height: 1.7;
}

.legal-contact {
    display: inline-flex;
    margin-top: 5px;
    padding: 14px 20px;
    border: 1px solid rgba(79,140,255,.28);
    border-radius: 10px;
    background: rgba(79,140,255,.08);
    color: #afc9ff !important;
    text-decoration: none;
    font-weight: 700;
}

.legal-footer {
    border-top: 1px solid var(--legal-border);
    background: rgba(0,0,0,.16);
}

.legal-footer__inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #5f6c7c;
    font-size: 13px;
}

.legal-footer__inner div {
    display: flex;
    gap: 22px;
}

.legal-footer a {
    color: #7d8998;
    text-decoration: none;
}

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

@media (max-width: 720px) {
    .legal-container {
        width: min(100% - 30px, 1120px);
    }

    .legal-header__inner {
        min-height: 70px;
    }

    .legal-brand__logo {
        width: 34px;
        height: 34px;
    }

    .legal-brand__name {
        width: 135px;
    }

    .legal-header__actions > a:first-child {
        display: none;
    }

    .legal-main {
        padding: 58px 0 80px;
    }

    .legal-hero {
        padding-bottom: 48px;
    }

    .legal-hero h1 {
        font-size: 42px;
    }

    .legal-lead {
        font-size: 16px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 42px 0;
    }

    .legal-number {
        padding: 0;
    }

    .legal-section h2 {
        font-size: 24px;
    }

    .legal-section--accent::before {
        inset: 12px -8px;
    }

    .legal-footer__inner {
        padding: 24px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}
