:root {
    --sky-blue: #4EC0CA;
    --sky-light: #89D9E1;
    --ground-green: #73BF2E;
    --btn-orange: #e67e22;
    --btn-shadow: #d35400;
    --card-bg: #ffffff;
    --text-color: #555;
    --title-color: #e67e22;
}

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

body {
    font-family: 'Fredoka One', cursive; /* Matches game font */
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-light) 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Layout Utilities */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3 {
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h2 {
    color: var(--title-color);
    text-shadow: 1px 1px 0 #000;
    font-size: 2rem;
    margin-top: 1rem;
    /* Added from other pages consistency if needed, but sticking to blog */
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px;
}

h3 {
    color: var(--text-color);
    text-shadow: none;
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Readable body font for long text */
    font-weight: 500;
}

/* Body text overrides */
body p, body li {
    font-family: 'Verdana', sans-serif; /* Fallback for readability */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    animation: bounceIn 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    font-family: 'Fredoka One', cursive;
}

/* Buttons and Links */
.cta-button {
    display: inline-block;
    background: var(--btn-orange);
    color: white;
    padding: 15px 50px;
    font-size: 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 0 var(--btn-shadow);
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: 'Fredoka One', cursive;
    text-shadow: 1px 1px 0 #000;
    animation: pulse 2s infinite;
}

.cta-button:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--btn-shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--btn-shadow);
}

.back-link {
    display: inline-block; /* changed from block to inline-block for side-by-side */
    margin-top: 30px;
    font-weight: bold;
    color: var(--title-color);
    text-decoration: none;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    margin-right: 15px;
}

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

/* Additional specific styles for contact/legal pages */
.contact-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.email-link {
    display: inline-block;
    background: var(--btn-orange);
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 10px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 1px 1px 0 #000;
}

/* Cards */
.card, .container > .container { /* handle nested or standalone containers if any merge issues */
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    /* border-bottom: 5px solid #eaeaea; Removed to match legal pages mostly having white bg container */
}

/* Specific fix: In blog.html .card is used, but in legal pages .container is the white card.
   Let's unify: .white-box or .card.
   For now, I'll make .container behave like a white box if it's the main wrapper in legal pages, 
   BUT blog.html has a transparent container and white cards.
   
   Solution: Apply .card style to .container only on legal pages? 
   Or just keep the CSS generic.
   
   Let's add a class .content-box for the white background style 
   and apply it to legal pages' main div.
*/

.white-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* In blog.html, .card is the white box. */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 5px solid #eaeaea;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
    padding-left: 10px;
}

/* Animations */
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Floating Icons Effect (Background) */
.bg-icon {
    position: fixed;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .cta-button { font-size: 1.5rem; padding: 12px 30px; }
    .container { padding: 15px; }
    .white-box { padding: 20px; }
}

/* SEO Content Styles */
.content-wrapper {
    text-align: left;
    padding: 40px;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-section {
    margin-bottom: 30px;
}

.seo-section h2 {
    color: var(--title-color);
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.seo-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
}

.seo-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.seo-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-section li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }
    .seo-section h2 {
        font-size: 1.6rem;
    }
}
