:root {
    --color-purple: #6E2C8F; /* Exact logo purple color requested */
    --color-dark-blue: #1D3261; /* Navy sampled from the "games" text in the logo */
    --text-main: #333333;
    --font-main: 'Outfit', sans-serif;
}

/* Screen-reader-only heading (SEO) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Section: White background with centered Logo */
.top-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    background-color: #ffffff;
}

.main-logo {
    max-width: 760px;
    max-height: 55vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: fadeIn 1s ease forwards;
}

/* Bottom Section: Solid purple background with white text */
.bottom-section {
    background-color: var(--color-purple);
    color: #ffffff;
    min-height: 25vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-weight: 400;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 32px;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-col a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Scroll Button */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-purple);
    border: 2px solid var(--color-purple);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(110, 44, 143, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    outline: none;
}

/* State when scrolled down: White background, white border (to look clean on purple bg) */
.scroll-btn.up {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Touch Device Hover Fix: Hover only triggers on desktop mouse devices */
@media (hover: hover) {
    .scroll-btn:hover {
        background-color: #551e73;
        border-color: #551e73;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(110, 44, 143, 0.6);
    }
    
    .scroll-btn.up:hover {
        background-color: #f3ebf7;
        border-color: #f3ebf7;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }
}

.scroll-btn .arrow {
    width: 12px;
    height: 12px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg); /* Points down by default */
    transition: transform 0.3s ease, margin-top 0.3s ease, border-color 0.3s ease;
    margin-top: -4px; /* visually center the downward arrow */
}

.scroll-btn.up .arrow {
    transform: rotate(-135deg); /* Points up */
    border-color: var(--color-purple); /* Purple arrow on white background */
    margin-top: 4px; /* visually center the upward arrow */
}

/* Policy Pages (privacy.html, terms.html, cookies.html) */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
    color: #333333;
    line-height: 1.8;
}

.policy-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-purple);
}

.policy-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-dark-blue);
}

.policy-container p {
    margin-bottom: 20px;
    color: #555555;
    font-size: 1.05rem;
}

.policy-container ul {
    margin-bottom: 20px;
    padding-left: 24px;
    color: #555555;
}

.policy-container li {
    margin-bottom: 8px;
}

.back-home {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.back-home:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness Rules */
@media (max-width: 600px) {
    .top-section {
        padding: 20px;
    }
    .main-logo {
        max-width: 85%; /* Leave more breathing room on mobile screens */
        max-height: 60vh;
    }
    .bottom-section {
        padding: 40px 20px;
    }
    .description {
        font-size: 1.1rem; /* Slightly smaller text for mobile */
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .scroll-btn {
        bottom: 20px;
        right: 20px; /* Bring the button slightly closer to the corner on mobile */
    }
}
