/* Canada Gaming Website Styles */

/* CSS Custom Properties */
:root {
    /* Colors using HSL format */
    --primary: 180 100% 50%; /* #00ffff - Cyan */
    --secondary: 300 100% 50%; /* #ff00ff - Magenta */
    --accent: 60 100% 50%; /* #ffff00 - Yellow */
    --success: 120 100% 50%; /* #00ff00 - Green */
    --warning: 39 100% 50%; /* #ff8800 - Orange */
    --danger: 0 100% 50%; /* #ff0000 - Red */
    
    /* Background colors */
    --background: 225 6% 13%; /* #1a1d23 - Dark background */
    --surface: 225 6% 18%; /* #272b33 - Card background */
    --surface-hover: 225 6% 23%; /* #353a44 - Hover state */
    
    /* Text colors */
    --text-primary: 0 0% 100%; /* #ffffff - Primary text */
    --text-secondary: 0 0% 70%; /* #b3b3b3 - Secondary text */
    --text-muted: 0 0% 50%; /* #808080 - Muted text */
    
    /* Border colors */
    --border: 225 6% 25%; /* #3a4048 - Default border */
    --border-light: 225 6% 30%; /* #454d57 - Light border */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--accent)));
    --gradient-bg: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface)));
    
    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;
    --transition-slow: 350ms ease-out;
    
    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-secondary));
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: hsl(var(--text-primary));
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: hsl(var(--secondary));
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 2.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--background));
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: hsl(var(--background));
}

.btn-secondary {
    background: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border-color: hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--surface-hover));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.btn-outline:hover {
    background: hsl(var(--primary));
    color: hsl(var(--background));
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

@media (min-width: 768px) {
    .navbar {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: inherit;
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: none;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: hsl(var(--text-secondary));
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: hsl(var(--text-primary));
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        padding: var(--space-lg);
        gap: var(--space-lg);
    }
}

/* Main Content */
main {
    margin-top: 80px; /* Account for fixed header */
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: var(--space-3xl) 0;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, hsl(var(--primary) / 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, hsl(var(--secondary) / 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    color: hsl(var(--text-secondary));
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    max-width: 100%;
    height: auto;
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Services Section */
.services {
    background: hsl(var(--surface));
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary) / 0.3);
}

.service-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: var(--space-md);
    color: hsl(var(--primary));
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: hsl(var(--surface) / 0.5);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: hsl(var(--text-secondary));
    margin: 0;
}

/* Reviews Section */
.reviews {
    background: hsl(var(--surface));
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    transition: all var(--transition-normal);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: hsl(var(--accent));
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.reviewer h4 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    color: hsl(var(--text-primary));
}

.reviewer span {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--gradient-primary);
    color: hsl(var(--background));
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2,
.newsletter-content p {
    color: hsl(var(--background));
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-direction: column;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: hsl(var(--background) / 0.9);
    color: hsl(var(--text-primary));
}

.newsletter-form input::placeholder {
    color: hsl(var(--text-muted));
}

.newsletter-form button {
    background: hsl(var(--background));
    color: hsl(var(--primary));
    border: none;
}

.newsletter-form button:hover {
    background: hsl(var(--surface));
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-item svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: var(--space-xs);
}

.contact-item h4 {
    margin-bottom: var(--space-sm);
    color: hsl(var(--text-primary));
}

.contact-item p {
    margin: 0;
    color: hsl(var(--text-secondary));
}

.contact-form {
    background: hsl(var(--surface));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
}

.form-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .form-group {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-size: 1rem;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: hsl(var(--text-muted));
}

/* Footer */
.footer {
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-primary));
}

.footer-section p {
    color: hsl(var(--text-secondary));
    margin-bottom: var(--space-md);
}

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

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: hsl(var(--text-secondary));
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: hsl(var(--primary));
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: hsl(var(--background));
    border-radius: var(--radius);
    color: hsl(var(--text-secondary));
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: hsl(var(--primary));
    color: hsl(var(--background));
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    color: hsl(var(--text-muted));
}

/* Blog Styles */
.page-header {
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
    background: var(--gradient-bg);
    margin-top: 80px;
}

.blog-section {
    padding: var(--space-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    background: hsl(var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: var(--space-lg);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.blog-category {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.blog-card h2 {
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.blog-card h2 a {
    color: hsl(var(--text-primary));
}

.blog-card h2 a:hover {
    color: hsl(var(--primary));
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: hsl(var(--primary));
    font-weight: 500;
    margin-top: var(--space-md);
}

.read-more:hover {
    color: hsl(var(--secondary));
}

/* Article Page Styles */
.article-page {
    padding: var(--space-3xl) 0;
    margin-top: 80px;
}

.article-header {
    margin-bottom: var(--space-xl);
}

.breadcrumb {
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: hsl(var(--primary));
}

.article-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.article-image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    color: hsl(var(--primary));
}

.article-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: hsl(var(--text-primary));
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.article-content li {
    margin-bottom: var(--space-sm);
    color: hsl(var(--text-secondary));
}

.article-tags {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid hsl(var(--border));
}

.tag {
    display: inline-block;
    background: hsl(var(--surface));
    color: hsl(var(--text-secondary));
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-right: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.article-share {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid hsl(var(--border));
}

.share-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    padding: var(--space-sm) var(--space-md);
    background: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--background));
}

.related-articles {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid hsl(var(--border));
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background: hsl(var(--surface));
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.related-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.related-card h3 a {
    color: hsl(var(--text-primary));
}

.related-card h3 a:hover {
    color: hsl(var(--primary));
}

.related-card p {
    font-size: 0.875rem;
    margin: 0;
    color: hsl(var(--text-muted));
}

/* Thank You Page Styles */
.thank-you-page {
    padding: var(--space-3xl) 0;
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
}

.thank-you-content h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

.what-to-expect {
    margin: var(--space-3xl) 0;
}

.expectations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .expectations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.expectation-item {
    background: hsl(var(--surface));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
}

.expectation-icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.steps-timeline {
    margin-top: var(--space-xl);
}

.step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: hsl(var(--background));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-content h3 {
    margin-bottom: var(--space-sm);
    color: hsl(var(--text-primary));
}

.step-content p {
    margin: 0;
    color: hsl(var(--text-secondary));
}

.thank-you-actions {
    margin: var(--space-2xl) 0;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.social-follow {
    margin-top: var(--space-2xl);
}

.social-follow h3 {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-primary));
}

/* Legal Page Styles */
.legal-page {
    padding: var(--space-3xl) 0;
    margin-top: 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid hsl(var(--border));
}

.last-updated {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

.legal-section {
    margin-bottom: var(--space-2xl);
}

.legal-section h2 {
    color: hsl(var(--primary));
    margin-bottom: var(--space-lg);
    text-align: left;
}

.legal-section h3 {
    color: hsl(var(--text-primary));
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-section h4 {
    color: hsl(var(--text-secondary));
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-section ul,
.legal-section ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-section li {
    margin-bottom: var(--space-sm);
    color: hsl(var(--text-secondary));
}

.contact-details {
    background: hsl(var(--surface));
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    margin: var(--space-lg) 0;
}

.contact-details p {
    margin-bottom: var(--space-sm);
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.cookie-settings-link {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid hsl(var(--border));
}

/* Cookie Banner and Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    padding: var(--space-lg);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-primary));
}

.cookie-content p {
    margin-bottom: var(--space-lg);
    color: hsl(var(--text-secondary));
}

.cookie-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    padding: var(--space-lg);
    overflow-y: auto;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: hsl(var(--surface));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 600px;
    width: 100%;
    border: 1px solid hsl(var(--border));
    position: relative;
}

.close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--text-muted));
    background: none;
    border: none;
}

.close:hover {
    color: hsl(var(--text-primary));
}

.cookie-category {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: hsl(var(--background));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.cookie-category h4 {
    margin-bottom: var(--space-sm);
    color: hsl(var(--text-primary));
}

.cookie-category p {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-secondary));
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--border));
    transition: var(--transition-fast);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary));
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-modal-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero {
        min-height: 70vh;
        padding: var(--space-xl) 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-modal {
        padding: var(--space-md);
    }
    
    .cookie-modal-content {
        padding: var(--space-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .article-page,
    .legal-page {
        margin-top: 0;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border: 0 0% 50%;
        --text-secondary: 0 0% 90%;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
