:root {
    --blurple: #5865F2;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --card-bg: #232336;
    --text-primary: #ffffff;
    --text-secondary: #b9bbbe;
    --text-muted: #8e9297;
    --border: #2a2a3d;
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--dark-bg);
    font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* ── Animated background ── */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.10;
    animation: float 22s infinite ease-in-out;
}

.bg-orb:nth-child(1) { width: 500px; height: 500px; background: var(--blurple); top: -120px; left: -80px; }
.bg-orb:nth-child(2) { width: 380px; height: 380px; background: #eb459e; top: 45%; right: -100px; animation-delay: -8s; animation-duration: 18s; }
.bg-orb:nth-child(3) { width: 320px; height: 320px; background: #5865F2; bottom: -80px; left: 35%; animation-delay: -15s; animation-duration: 25s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(60px, -50px) scale(1.1); }
    66%       { transform: translate(-40px, 70px) scale(0.92); }
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    background: rgba(15, 15, 26, 0.80);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ── Page container ── */
.tos-container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 2rem 80px;
}

/* ── Header ── */
.tos-header {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
}

.tos-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #5865F2, #eb459e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tos-updated {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 8px;
}

/* ── Content sections ── */
.tos-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.tos-content section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color var(--transition);
}

.tos-content section:hover {
    border-color: rgba(88, 101, 242, 0.35);
}

.tos-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blurple);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.tos-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.tos-content p:last-child {
    margin-bottom: 0;
}

.tos-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.tos-content ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.tos-content ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--blurple);
}

.tos-content a {
    color: var(--blurple);
    text-decoration: none;
}

.tos-content a:hover {
    text-decoration: underline;
}

/* ── Back button ── */
.tos-back {
    margin-top: 48px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: var(--blurple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-back:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: var(--blurple);
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .tos-container {
        padding: 90px 1rem 60px;
    }

    .tos-content section {
        padding: 20px;
    }
}
