@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bg: #07070a;
    --card: rgba(255, 255, 255, 0.045);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f7f7f8;
    --muted: #9696a3;
    --muted-2: #666672;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --blue: #6366f1;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(124, 58, 237, 0.13),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

body::before {
    content: '';

    position: fixed;
    inset: 0;

    pointer-events: none;
    opacity: 0.35;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.12) 0.7px,
            transparent 0.7px
        );

    background-size: 28px 28px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 65%
    );

    z-index: -2;
}

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

.ambient {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(130px);

    pointer-events: none;
    opacity: 0.09;

    z-index: -1;
}

.ambient-1 {
    top: 100px;
    left: -250px;
    background: var(--purple);
}

.ambient-2 {
    top: 600px;
    right: -300px;
    background: var(--blue);
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    height: 78px;

    margin: auto;

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

.nav-container {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
}

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

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;

    flex-shrink: 0;
}

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

    display: grid;
    place-items: center;

    border-radius: 9px;
    overflow: hidden;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.25);
}

.brand-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

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

    margin-left: auto;
    margin-right: 35px;
}

.nav-links a {
    color: var(--muted);
    font-size: 12px;

    padding: 0;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a + a {
    margin-left: 30px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    padding: 9px 14px;

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

    background: rgba(255, 255, 255, 0.04);

    font-size: 11px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}


/* =========================
   TERMS HERO
========================= */

.terms-hero {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: auto;

    padding: 110px 0 75px;

    text-align: center;
}

.terms-hero .eyebrow {
    display: inline-block;

    color: var(--purple-light);

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

    letter-spacing: 2px;
}

.terms-hero h1 {
    margin-top: 18px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: clamp(
        46px,
        7vw,
        76px
    );

    font-weight: 800;

    line-height: 1.04;
    letter-spacing: -3.5px;
}

.terms-hero p {
    max-width: 600px;

    margin: 22px auto 0;

    color: var(--muted);

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

.terms-hero .updated {
    display: block;

    margin-top: 18px;

    color: var(--muted-2);

    font-size: 9px;
}


/* =========================
   TERMS SECTIONS
========================= */

.terms-container {
    width: min(
        calc(100% - 48px),
        900px
    );

    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.terms-card {
    position: relative;

    display: grid;
    grid-template-columns: 55px 1fr;

    padding: 30px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.terms-card:hover {
    transform: translateY(-2px);

    border-color: var(--border-hover);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );
}

.terms-number {
    color: var(--purple-light);

    font-family: 'Plus Jakarta Sans', sans-serif;

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

    letter-spacing: 1px;
}

.terms-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;

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

    line-height: 1.3;
}

.terms-content p {
    max-width: 700px;

    margin-top: 11px;

    color: var(--muted);

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


/* =========================
   BACK BUTTON
========================= */

.terms-footer {
    width: min(
        calc(100% - 48px),
        900px
    );

    margin: 35px auto 100px;

    display: flex;
    justify-content: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 17px;

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

    background: rgba(255, 255, 255, 0.035);

    color: var(--muted);

    font-size: 11px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.back-button:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.06);

    border-color: var(--border-hover);

    color: var(--text);
}


/* =========================
   FOOTER
========================= */

.footer {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: auto;

    padding: 28px 0;

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

    color: var(--muted-2);

    font-size: 9px;
}

.footer-container {
    width: 100%;

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

.footer-left {
    display: flex;
    align-items: center;

    gap: 15px;
}

.footer-brand {
    color: var(--text);
}

.footer-subtitle {
    color: var(--muted-2);
}

.footer-links {
    display: flex;
    align-items: center;
}

.footer-links a + a {
    margin-left: 22px;
}

.footer-links a {
    color: var(--muted-2);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--text);
}

.footer-links a:hover {
    transform: translateY(-1px);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .nav-links {
        margin-right: 0;
    }

    .nav-links a + a {
        margin-left: 20px;
    }

    .nav-button {
        display: none;
    }

    .footer-left {
        gap: 10px;
    }

    .footer-links a + a {
        margin-left: 15px;
    }
}

@media (max-width: 650px) {

    .navbar {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );
    }

    .nav-links {
        margin-left: 15px;
    }

    .nav-links a + a {
        margin-left: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .nav-links a:first-child {
        display: none;
    }

    .terms-hero {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );

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

    .terms-hero h1 {
        letter-spacing: -2.5px;
    }

    .terms-container {
        width: min(
            calc(100% - 30px),
            900px
        );
    }

    .terms-card {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 24px;
    }

    .terms-number {
        margin-bottom: 2px;
    }

    .terms-footer {
        width: min(
            calc(100% - 30px),
            900px
        );

        margin-bottom: 70px;
    }

    .footer {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }

    .footer-links {
        flex-wrap: wrap;

        row-gap: 12px;
        column-gap: 20px;
    }

    .footer-links a + a {
        margin-left: 0;
    }
}
