:root {
    --bg: #02140e;
    --bg2: #041c14;
    --card: rgba(8, 39, 28, .78);
    --card2: rgba(8, 52, 36, .55);
    --border: rgba(100, 255, 171, .14);
    --green: #47e88b;
    --green2: #19c86d;
    --text: #f3fff7;
    --muted: #9bb4a7;
    --danger: #ffb86b;
    --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(26, 210, 111, .14),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(43, 160, 100, .13),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #01130c,
            #042117 50%,
            #02150f
        );

    min-height: 100vh;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.legal-nav {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(2, 20, 14, .84);

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

    border-bottom: 1px solid var(--border);
}

.legal-nav-inner {
    max-width: 1240px;

    margin: auto;

    padding: 14px 22px;

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

    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: white;

    font-weight: 800;

    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #49ef92,
            #15b967
        );

    color: #02160d;

    box-shadow:
        0 8px 30px rgba(56, 230, 135, .22);
}

.brand small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 9px;

    flex-wrap: wrap;
}

.nav-link {
    padding: 9px 13px;

    border-radius: 10px;

    color: #cfe2d7;

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

    text-decoration: none;

    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(71, 232, 139, .11);

    color: var(--green);

    text-decoration: none;
}

.home-button {
    border: 1px solid rgba(71, 232, 139, .2);
}

.hero {
    max-width: 1240px;

    margin: auto;

    padding:
        clamp(50px, 8vw, 100px)
        22px
        38px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(71,232,139,.2);

    border-radius: 999px;

    background: rgba(71,232,139,.08);

    color: var(--green);

    font-size: 13px;
    font-weight: 750;
}

.hero h1 {
    margin: 21px 0 15px;

    max-width: 900px;

    font-size:
        clamp(38px, 6vw, 72px);

    line-height: 1;

    letter-spacing: -2px;
}

.hero p {
    max-width: 800px;

    margin: 0;

    color: var(--muted);

    font-size:
        clamp(16px, 2vw, 19px);

    line-height: 1.7;
}

.meta-row {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.meta-box {
    padding: 10px 14px;

    border: 1px solid var(--border);

    border-radius: 11px;

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

    color: #b8d0c3;

    font-size: 13px;
}

.legal-layout {
    max-width: 1240px;

    margin: auto;

    padding:
        10px
        22px
        80px;

    display: grid;

    grid-template-columns:
        270px
        minmax(0, 1fr);

    gap: 25px;

    align-items: start;
}

.toc {
    position: sticky;

    top: 90px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--card);

    box-shadow: var(--shadow);
}

.toc-title {
    margin: 0 0 12px;

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

    color: #fff;
}

.toc a {
    display: block;

    margin: 3px 0;

    padding: 9px 10px;

    border-radius: 9px;

    color: #9eb6a9;

    font-size: 13px;

    text-decoration: none;
}

.toc a:hover {
    background: rgba(71,232,139,.08);

    color: var(--green);
}

.legal-card {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 24px;

    background: var(--card);

    box-shadow: var(--shadow);
}

.legal-section {
    padding:
        clamp(22px, 4vw, 38px);

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

    scroll-margin-top: 100px;
}

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

.section-number {
    display: inline-grid;
    place-items: center;

    min-width: 34px;
    height: 34px;

    margin-bottom: 13px;

    padding: 0 8px;

    border-radius: 10px;

    background: rgba(71,232,139,.09);

    color: var(--green);

    font-size: 12px;
    font-weight: 850;
}

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

    font-size:
        clamp(21px, 3vw, 29px);

    letter-spacing: -.5px;
}

.legal-section h3 {
    margin: 26px 0 10px;

    color: #dcf7e7;

    font-size: 17px;
}

.legal-section p,
.legal-section li {
    color: #abc1b5;

    line-height: 1.82;

    font-size: 15px;
}

.legal-section ul {
    margin: 13px 0;

    padding-left: 23px;
}

.legal-section li {
    margin: 9px 0;
}

.highlight {
    margin: 20px 0;

    padding: 18px;

    border:
        1px solid rgba(71,232,139,.2);

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(71,232,139,.085),
            rgba(71,232,139,.025)
        );
}

.highlight strong {
    color: #eafff1;
}

.warning {
    border-color:
        rgba(255,184,107,.25);

    background:
        rgba(255,184,107,.055);
}

.warning strong {
    color: #ffd5a7;
}

.contact-card {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;

    margin-top: 18px;
}

.contact-item {
    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(255,255,255,.025);
}

.contact-item span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .7px;
}

.contact-item strong {
    font-size: 14px;
}

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

    background: rgba(0,0,0,.12);
}

.footer-inner {
    max-width: 1240px;

    margin: auto;

    padding: 30px 22px;

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

    gap: 20px;

    flex-wrap: wrap;
}

.footer-copy {
    color: var(--muted);

    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #adc4b8;

    font-size: 13px;
}

@media (max-width: 850px) {

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

    .toc {
        position: static;

        display: flex;

        gap: 5px;

        overflow-x: auto;
    }

    .toc-title {
        display: none;
    }

    .toc a {
        flex: 0 0 auto;

        white-space: nowrap;
    }
}

@media (max-width: 620px) {

    .legal-nav-inner {
        padding: 11px 14px;
    }

    .brand small {
        display: none;
    }

    .brand-text {
        font-size: 14px;
    }

    .nav-links .hide-mobile {
        display: none;
    }

    .hero {
        padding:
            48px
            15px
            25px;
    }

    .hero h1 {
        letter-spacing: -1.2px;
    }

    .legal-layout {
        padding:
            5px
            13px
            50px;
    }

    .legal-section {
        padding: 23px 18px;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding:
            25px
            16px;
    }
}