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

:root {
    --primary: #000;
    --primary-light: #333;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.subtitle a:hover {
    opacity: 0.7;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Games Section */
.games {
    padding: 80px 0;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.game-card {
    display: block;
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.game-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.game-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.game-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Facebook Games Section */
.facebook-games {
    padding: 80px 0;
    background: var(--bg-alt);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.fb-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fb-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fb-game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.fb-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.fb-icon svg {
    width: 100%;
    height: 100%;
}

.fb-game-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Legal Pages */
.legal-page {
    padding: 60px 0 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-header .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text);
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .fb-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .fb-game-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .legal-header h1 {
        font-size: 2rem;
    }
}
