﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --dark: #0a0d12;
    --dark2: #111520;
    --dark3: #161b27;
    --border: rgba(255,255,255,.07);
    --blue: #1d6ff4;
    --text: #e2e8f0;
    --muted: #7a8aa0;
    --mono: 'Courier New',monospace
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: -apple-system,sans-serif;
    font-size: 15px;
    line-height: 1.8
}

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(10,13,18,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border)
}

.nav-brand {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase
}

    .nav-brand span {
        color: var(--blue)
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none
}

    .nav-links a {
        color: var(--muted);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        letter-spacing: .04em;
        transition: color .2s
    }

        .nav-links a:hover {
            color: #fff
        }

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase
}

    .nav-cta:hover {
        opacity: .85
    }

/* Layout */
.page-wrap {
    min-height: 100vh;
    padding: 120px 48px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto
}

/* Sidebar TOC */
.toc {
    position: sticky;
    top: 88px;
    height: fit-content
}

.toc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px
}

.toc-list {
    list-style: none
}

    .toc-list li {
        margin-bottom: 4px
    }

    .toc-list a {
        font-size: 13px;
        color: var(--muted);
        text-decoration: none;
        padding: 6px 12px;
        border-left: 2px solid var(--border);
        display: block;
        transition: color .2s,border-color .2s
    }

        .toc-list a:hover {
            color: #fff;
            border-color: var(--blue)
        }

        .toc-list a.active {
            color: var(--blue);
            border-color: var(--blue)
        }

/* Content */
.content {
    padding-bottom: 80px
}

.page-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px
}

.page-title {
    font-size: clamp(28px,4vw,48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 12px
}

    .page-title span {
        color: var(--blue)
    }

.page-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border)
}

    .page-meta strong {
        color: var(--text)
    }

/* Sections */
.terms-section {
    margin-bottom: 56px;
    scroll-margin-top: 96px
}

    .terms-section h2 {
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 10px
    }

        .terms-section h2 .s-num {
            font-family: var(--mono);
            font-size: 11px;
            color: var(--blue);
            font-weight: 700;
            letter-spacing: .06em;
            background: rgba(29,111,244,.1);
            border: 1px solid rgba(29,111,244,.2);
            padding: 2px 8px;
            border-radius: 4px
        }

    .terms-section h3 {
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
        margin: 20px 0 8px
    }

    .terms-section p {
        font-size: 14px;
        color: var(--muted);
        margin-bottom: 12px;
        line-height: 1.8
    }

    .terms-section ul {
        list-style: none;
        margin-bottom: 12px
    }

        .terms-section ul li {
            font-size: 14px;
            color: var(--muted);
            padding: 6px 0 6px 20px;
            position: relative;
            line-height: 1.7
        }

            .terms-section ul li::before {
                content: '—';
                position: absolute;
                left: 0;
                color: var(--blue);
                font-weight: 700
            }

/* Highlight box */
.highlight-box {
    background: rgba(29,111,244,.07);
    border: 1px solid rgba(29,111,244,.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0
}

    .highlight-box p {
        color: var(--text);
        margin-bottom: 0;
        font-size: 14px
    }

/* Warning box */
.warning-box {
    background: rgba(234,179,8,.06);
    border: 1px solid rgba(234,179,8,.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0
}

    .warning-box p {
        color: #fbbf24;
        margin-bottom: 0;
        font-size: 14px
    }

/* Contact strip */
.contact-strip {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px
}

    .contact-strip p {
        font-size: 14px;
        color: var(--muted);
        margin: 0
    }

    .contact-strip a {
        background: var(--blue);
        color: #fff;
        text-decoration: none;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        white-space: nowrap;
        transition: opacity .2s
    }

        .contact-strip a:hover {
            opacity: .85
        }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark2)
}

.footer-brand {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .06em
}

    .footer-brand span {
        color: var(--blue)
    }

.footer-copy {
    font-size: 12px;
    color: var(--muted)
}

.footer-links {
    display: flex;
    gap: 24px
}

    .footer-links a {
        font-size: 12px;
        color: var(--muted);
        text-decoration: none;
        transition: color .2s
    }

        .footer-links a:hover {
            color: #fff
        }

@media(max-width:860px) {
    .nav {
        padding: 0 24px
    }

    .nav-links {
        display: none
    }

    .page-wrap {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
        gap: 0
    }

    .toc {
        display: none
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center
    }
}
