:root {
    --bg: #0e1116;
    --card: #12161b;
    --border: #1f2630;
    --text: #e6edf3;
    --text-light: #9aa4b2;
    --subtext: #9aa4b2;
    --accent: #4c8bf5;
    --accent-hover: #3e7bf0;
    --hover-bg: #141a21;
    --transition: 0.25s;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.terms-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.terms-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition) ease-out, transform var(--transition) ease-out;
}

.terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.terms-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.terms-section ol,
.terms-section ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

.terms-section li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.terms-section strong {
    color: var(--text);
}

.terms-section p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

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

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

@media (max-width: 768px) {
    .terms-title {
        font-size: 2rem;
    }
    .terms-section {
        padding: 15px;
    }
    .terms-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 30px 15px;
    }
    .terms-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    .terms-section p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: var(--text-light);
    }
    .terms-section {
        padding: 12px;
    }
    .terms-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    .terms-section li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
    .terms-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .terms-section {
        padding: 10px;
    }
    .terms-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    .terms-section p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: var(--text-light);
    }
    .terms-section li {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 15px 8px;
    }
    .terms-section p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: var(--text-light);
    }
    .terms-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    .terms-section {
        padding: 8px;
    }
    .terms-section h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .terms-section li {
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
    }
}
