:root {
    --bg: #07100c;
    --bg-soft: #0a1510;
    --card: rgba(14, 28, 21, 0.78);
    --card-strong: rgba(16, 33, 24, 0.95);

    --border: rgba(255, 255, 255, 0.08);
    --border-green: rgba(72, 224, 142, 0.20);

    --text: #f2f7f4;
    --text-soft: #a8b8af;
    --text-muted: #74877c;

    --green: #43e58f;
    --green-soft: rgba(67, 229, 143, 0.12);

    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(50, 207, 128, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(43, 143, 91, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #07100c 0%,
            #08120e 55%,
            #050b08 100%
        );

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.legal-shell {
    min-height: 100vh;
}

.legal-topbar {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;
}

.legal-brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(67, 229, 143, 0.28);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(67, 229, 143, 0.16),
            rgba(67, 229, 143, 0.04)
        );

    box-shadow:
        inset 0 0 18px rgba(67, 229, 143, 0.06),
        0 8px 30px rgba(0, 0, 0, 0.16);

    color: var(--green);

    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.brand-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 700;
}

.legal-language a {
    color: var(--text-muted);
    text-decoration: none;

    transition:
        color 160ms ease,
        background 160ms ease;
}

.legal-language a:hover,
.legal-language a.active {
    color: var(--green);
}

.legal-container {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0 90px;
}

.legal-badge {
    display: inline-flex;

    margin-bottom: 20px;
    padding: 7px 12px;

    border: 1px solid rgba(67, 229, 143, 0.22);
    border-radius: 999px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.legal-intro {
    max-width: 760px;

    margin: 24px 0 0;

    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.75;
}

.legal-updated {
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: 13px;
}

.legal-section {
    margin-top: 34px;
    padding: 30px 32px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 34, 25, 0.82),
            rgba(10, 20, 15, 0.72)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 16px 50px rgba(0, 0, 0, 0.12);
}

.legal-section:hover {
    border-color: var(--border-green);
}

.legal-section h2 {
    margin: 0 0 16px;

    color: var(--text);

    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.legal-section p {
    margin: 12px 0 0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.8;
}

.legal-section p:first-of-type {
    margin-top: 0;
}

.legal-section ul {
    margin: 17px 0 0;
    padding-left: 23px;

    color: var(--text-soft);
}

.legal-section li {
    margin: 8px 0;

    line-height: 1.7;
}

.legal-section strong {
    color: var(--text);
}

.legal-section a {
    font-weight: 700;
}

.legal-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 13px;
}

.legal-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.legal-footer a {
    color: var(--text-soft);
}

.legal-footer a:hover {
    color: var(--green);
}

@media (max-width: 700px) {

    .legal-topbar {
        width: min(100% - 28px, 1180px);
        min-height: 74px;
    }

    .brand-text {
        font-size: 14px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .legal-container {
        width: min(100% - 28px, 920px);
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .legal-intro {
        font-size: 16px;
    }

    .legal-section {
        margin-top: 22px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .legal-section h2 {
        font-size: 18px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }

    .legal-footer {
        width: min(100% - 28px, 1180px);

        flex-direction: column;
        align-items: flex-start;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}