:root {
    --bg: #08090b;
    --bg-soft: #0d0f12;
    --card: rgba(255,255,255,.025);
    --line: rgba(255,255,255,.08);

    --text: #f4f4f2;
    --muted: #989ba3;
    --muted-light: #b9bbc1;

    --gold: #d6a348;
    --gold-light: #e6b451;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(circle at 50% -10%, rgba(214,163,72,.08), transparent 32%),
        #08090b;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;

    border-bottom: 1px solid rgba(255,255,255,.06);

    background: rgba(8,9,11,.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.legal-header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .06em;
}

.legal-brand img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.legal-back {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 10px 15px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;

    color: var(--muted-light);

    font-size: 13px;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.legal-back:hover {
    color: var(--text);

    border-color: rgba(230,180,81,.28);

    background: rgba(230,180,81,.04);
}

.legal-main {
    width: min(920px, calc(100% - 40px));

    margin: 0 auto;

    padding: 92px 0 110px;
}

.legal-kicker {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--gold-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .22em;

    text-transform: uppercase;
}

.legal-title {
    max-width: 780px;

    margin: 0;

    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;

    letter-spacing: -.045em;
}

.legal-intro {
    max-width: 760px;

    margin: 25px 0 0;

    color: var(--muted-light);

    font-size: 16px;
    line-height: 1.8;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.legal-meta span {
    padding: 8px 12px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--muted);

    background: rgba(255,255,255,.018);

    font-size: 11px;
}

.legal-document {
    margin-top: 64px;
}

.legal-section {
    position: relative;

    margin-bottom: 18px;
    padding: 30px 32px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.009)
        );
}

.legal-section::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 29px;

    width: 2px;
    height: 27px;

    border-radius: 10px;

    background: var(--gold-light);

    box-shadow: 0 0 18px rgba(230,180,81,.25);
}

.legal-section h2 {
    margin: 0 0 20px;

    font-size: 20px;
    line-height: 1.3;

    letter-spacing: -.02em;
}

.legal-section p {
    margin: 0 0 15px;

    color: var(--muted-light);

    font-size: 14px;
    line-height: 1.8;
}

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

.legal-section ul {
    margin: 15px 0 0;
    padding: 0;

    list-style: none;
}

.legal-section li {
    position: relative;

    margin: 10px 0;
    padding-left: 21px;

    color: var(--muted-light);

    font-size: 14px;
    line-height: 1.7;
}

.legal-section li::before {
    content: "";

    position: absolute;

    left: 1px;
    top: .75em;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--gold-light);

    box-shadow: 0 0 9px rgba(230,180,81,.3);
}

.legal-section a {
    color: var(--gold-light);

    transition: opacity .2s ease;
}

.legal-section a:hover {
    opacity: .75;
}

.legal-footer {
    padding: 34px 20px;

    border-top: 1px solid rgba(255,255,255,.06);

    color: #676a71;

    text-align: center;

    font-size: 11px;
}

@media (max-width: 640px) {
    .legal-header-inner {
        width: min(100% - 28px, 1180px);
        height: 68px;
    }

    .legal-brand span {
        display: none;
    }

    .legal-main {
        width: min(100% - 28px, 920px);

        padding-top: 62px;
        padding-bottom: 80px;
    }

    .legal-title {
        font-size: 38px;
    }

    .legal-intro {
        font-size: 14px;
    }

    .legal-document {
        margin-top: 45px;
    }

    .legal-section {
        padding: 25px 22px;

        border-radius: 17px;
    }

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