*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --accent: #00cec9;
    --bg: #0a0a1a;
    --bg-card: #12122a;
    --text: #e8e8f0;
    --text-muted: #9090a8;
    --text-heading: #ffffff;
    --border: rgba(108, 92, 231, 0.2);
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Background */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main Page */
.main-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.main-content {
    text-align: center;
    width: 100%;
}

.main-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.main-content > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.legal-card:hover {
    border-color: rgba(108, 92, 231, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.15);
}

.legal-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.legal-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.legal-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

.legal-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 32px;
    margin-bottom: 14px;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.legal-content ul {
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-left: 24px;
    font-size: 0.95rem;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content ul li::marker {
    color: var(--primary-light);
}

/* Footer */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    .legal-cards {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 28px 20px;
    }
}

::selection {
    background: rgba(108, 92, 231, 0.3);
    color: var(--text-heading);
}