:root {
    --bg:#050505;
    --surface:#101010;
    --surface-hover:#151515;
    --border:#242424;
    --text:#ffffff;
    --secondary:#9CA3AF;
    --accent:#64748B;
    --accent-soft:rgba(100,116,139,.15);
    --radius:18px;
    --transition:.3s ease;
}

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

html {
    scroll-behavior:smooth;
}

body {
    background:var(--bg);
    color:var(--text);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    min-height:100vh;
    line-height:1.7;
}

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

.terms-container {
    width:min(900px,92%);
    margin:0 auto;
    padding:70px 0 40px;
}

.terms-header {
    max-width:760px;
    margin:0 auto 60px;
    text-align:center;
}

.terms-label {
    display:inline-block;
    margin-bottom:18px;
    color:var(--secondary);
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
}

.terms-header h1 {
    margin-bottom:22px;
    color:var(--text);
    font-size:clamp(40px,7vw,64px);
    line-height:1.05;
    letter-spacing:-3px;
    font-weight:800;
}

.terms-header h1 span {
    color:var(--accent);
}

.terms-header > p {
    max-width:680px;
    margin:0 auto;
    color:var(--secondary);
    font-size:16px;
    line-height:1.8;
}

.terms-meta {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 24px;
    margin-top:25px;
    color:#6b7280;
    font-size:12px;
}

.terms-index {
    max-width:760px;
    margin:0 auto 70px;
    padding:25px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.terms-index h2 {
    margin-bottom:18px;
    color:var(--text);
    font-size:16px;
    font-weight:600;
}

.terms-index a {
    display:block;
    padding:7px 0;
    color:var(--secondary);
    font-size:13px;
    transition:var(--transition);
}

.terms-index a:hover {
    color:var(--text);
    transform:translateX(4px);
}

.terms-section {
    max-width:760px;
    margin:0 auto 75px;
    scroll-margin-top:100px;
}

.section-number {
    display:block;
    margin-bottom:12px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
}

.terms-section h2 {
    margin-bottom:20px;
    color:var(--text);
    font-size:clamp(27px,5vw,38px);
    line-height:1.15;
    letter-spacing:-1.5px;
    font-weight:750;
}

.terms-section h3 {
    margin:28px 0 10px;
    color:var(--text);
    font-size:17px;
    line-height:1.3;
}

.terms-section p {
    margin-bottom:17px;
    color:var(--secondary);
    font-size:15px;
    line-height:1.8;
}

.terms-section ul {
    margin:15px 0 22px;
    padding-left:22px;
}

.terms-section li {
    margin-bottom:9px;
    color:var(--secondary);
    font-size:15px;
    line-height:1.7;
}

.terms-notice {
    display:flex;
    flex-direction:column;
    gap:5px;
    margin:25px 0;
    padding:20px;
    background:var(--accent-soft);
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.terms-notice strong {
    color:var(--text);
    font-size:15px;
}

.terms-notice span {
    color:var(--secondary);
    font-size:13px;
    line-height:1.6;
}

.terms-contact {
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-top:25px;
    padding:22px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.terms-contact strong {
    color:var(--text);
    font-size:16px;
}

.terms-contact span {
    color:var(--secondary);
    font-size:13px;
}

.terms-contact a {
    width:max-content;
    margin-top:5px;
    color:var(--text);
    font-size:14px;
    transition:var(--transition);
}

.terms-contact a:hover {
    color:var(--accent);
}

.terms-final {
    max-width:760px;
    margin:0 auto;
    padding:28px 25px;
    text-align:center;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.terms-final strong {
    display:block;
    margin-bottom:6px;
    color:var(--text);
    font-size:17px;
}

.terms-final span {
    color:var(--secondary);
    font-size:13px;
}

.terms-footer {
    margin-top:40px;
    padding:35px 20px 25px;
    border-top:1px solid var(--border);
    text-align:center;
}

.terms-footer .footer-links {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px 24px;
    margin-bottom:18px;
}

.terms-footer .footer-links a {
    color:var(--secondary);
    font-size:13px;
    transition:var(--transition);
}

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

.terms-footer p {
    margin:0;
    color:#6b7280;
    font-size:12px;
}

@media(max-width:650px) {

    .terms-container {
        width:90%;
        padding:50px 0 30px;
    }

    .terms-header {
        margin-bottom:45px;
    }

    .terms-header h1 {
        letter-spacing:-2px;
    }

    .terms-header > p {
        font-size:15px;
        line-height:1.7;
    }

    .terms-index {
        padding:20px;
        margin-bottom:55px;
    }

    .terms-section {
        margin-bottom:60px;
    }

    .terms-section h2 {
        letter-spacing:-1px;
    }

    .terms-section p,
    .terms-section li {
        font-size:14px;
    }

    .terms-notice {
        padding:18px;
    }

    .terms-contact {
        padding:20px;
    }

    .terms-final {
        padding:24px 18px;
    }

}

@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after {
        transition:none !important;
        animation:none !important;
    }

}

.terms-section,
.terms-index,
.terms-contact,
.terms-final {
    animation:termsReveal linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 30%;
}

@keyframes termsReveal {

    from {
        opacity:0;
        filter:blur(5px);
        transform:translateY(28px);
    }

    to {
        opacity:1;
        filter:blur(0);
        transform:translateY(0);
    }

}

.terms-notice {
    animation:termsNotice linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 25%;
}

@keyframes termsNotice {

    from {
        opacity:0;
        transform:translateY(18px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }

}

.terms-section:nth-of-type(even) {
    animation-name:termsRevealLeft;
}

.terms-section:nth-of-type(odd) {
    animation-name:termsRevealRight;
}

@keyframes termsRevealLeft {

    from {
        opacity:0;
        filter:blur(4px);
        transform:translateX(-22px);
    }

    to {
        opacity:1;
        filter:blur(0);
        transform:translateX(0);
    }

}

@keyframes termsRevealRight {

    from {
        opacity:0;
        filter:blur(4px);
        transform:translateX(22px);
    }

    to {
        opacity:1;
        filter:blur(0);
        transform:translateX(0);
    }

}

@media(prefers-reduced-motion:reduce) {

    .terms-section,
    .terms-index,
    .terms-contact,
    .terms-final,
    .terms-notice {
        animation:none;
    }

}
