/* Aerraflow Design System - Warm Broken Tones + 3D Effects */

/* === GDPR-COMPLIANT FONTS === */
/* Local Comfortaa font + system font fallbacks for privacy */

/* Comfortaa Variable Font (Modern browsers with full ligature support) */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa-Variable.ttf') format('truetype-variations');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    font-feature-settings: 'liga' 1, 'clig' 1, 'calt' 1;
}

/* Comfortaa Light - Full OpenType with ligatures */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa-Light.woff2') format('woff2'),
         url('../fonts/Comfortaa-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    font-feature-settings: 'liga' 1, 'clig' 1, 'calt' 1;
}

/* Comfortaa Regular - Full OpenType with ligatures */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa-Regular.woff2') format('woff2'),
         url('../fonts/Comfortaa-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    font-feature-settings: 'liga' 1, 'clig' 1, 'calt' 1;
}

/* Comfortaa Bold - Full OpenType with ligatures */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa-Bold.woff2') format('woff2'),
         url('../fonts/Comfortaa-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    font-feature-settings: 'liga' 1, 'clig' 1, 'calt' 1;
}

/* Aerraflow Font Configuration */

:root {
    /* === WARM BROKEN COLOR PALETTE === */
    /* Background Layers - Warm Dark Tones */
    --bg-primary: #1a1b1a;           /* Warm anthracite instead of pure black */
    --bg-secondary: #202220;         /* Warmer card backgrounds */
    --bg-tertiary: #272928;          /* Elevated surfaces with warmth */
    --bg-overlay: #2f3130;           /* Overlays with warm undertone */
    
    /* Surface Colors - Subtle Warmth */
    --surface-100: #232524;          /* Subtle warm surfaces */
    --surface-200: #2a2c2b;          /* Input backgrounds */
    --surface-300: #343736;          /* Hover states */
    
    /* Text Colors - Broken Whites */
    --text-primary: #fdfcf7;         /* Warm off-white instead of pure white */
    --text-secondary: #c9c7c0;       /* Warm secondary text */
    --text-tertiary: #a8a69f;        /* Warm muted text */
    --text-disabled: #6b6964;        /* Warm disabled text */
    
    /* Main Aerraflow Accent - Warm Orange/Amber */
    --aerraflow-primary: #f59e0b;     /* Main aerraflow amber */
    --aerraflow-light: #fbbf24;       /* Light amber for highlights */
    --aerraflow-dark: #d97706;        /* Dark amber for depth */
    --aerraflow-glow: rgba(245, 158, 11, 0.4);  /* Glow effect */
    
    /* Context-Based Accent Colors */
    --success: #4a9960;              /* Warm green for success/money */
    --warning: #d4941e;              /* Amber warning */
    --error: #c85450;                /* Warm red for fatal */
    --info: #fdfcf7;                 /* Off-white for info */
    
    /* Secondary Fantasy Colors */
    --magic-purple: #9a7fb8;         /* Warmer magical purple */
    --magic-blue: #5a8fb8;           /* Warmer mystical blue */
    --magic-green: #4a9960;          /* Warm enchanted green */
    
    /* Subtle Borders - Color Differences instead of harsh lines */
    --border-subtle: rgba(253, 252, 247, 0.08);  /* Very subtle warm border */
    --border-muted: rgba(253, 252, 247, 0.12);   /* Muted warm border */
    --border-strong: rgba(253, 252, 247, 0.20);  /* Stronger warm border */
    
    /* === TYPOGRAPHY === */
    --font-sans: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-serif: 'New York', 'Times New Roman', 'Georgia', serif;
    
    /* Font Sizes - More Mobile-Friendly Scale */
    --text-xs: 0.7rem;   /* Reduced from 0.75rem */
    --text-sm: 0.8rem;   /* Reduced from 0.875rem */
    --text-base: 0.9rem; /* Reduced from 1rem */
    --text-lg: 1rem;     /* Reduced from 1.125rem */
    --text-xl: 1.1rem;   /* Reduced from 1.25rem */
    --text-2xl: 1.3rem;  /* Reduced from 1.5rem */
    --text-3xl: 1.6rem;  /* Reduced from 1.875rem */
    --text-4xl: 1.9rem;  /* Reduced from 2.25rem */
    --text-5xl: 2.4rem;  /* Reduced from 3rem */
    --text-6xl: 3.2rem;  /* Reduced from 4rem */
    
    /* === SPACING === */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* === 3D EFFECTS INSTEAD OF BORDERS === */
    --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-raise-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(253, 252, 247, 0.05) inset;
    --shadow-raise: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(253, 252, 247, 0.08) inset;
    --shadow-raise-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(253, 252, 247, 0.10) inset;
    --shadow-glow: 0 0 20px var(--aerraflow-glow), 0 0 5px rgba(245, 158, 11, 0.2) inset;
    
    /* === BORDER RADIUS === */
    --radius-sm: 0.25rem;
    --radius-base: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* === ANIMATIONS === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* === GRADIENTS === */
    --gradient-aerraflow: linear-gradient(135deg, var(--aerraflow-primary) 0%, var(--aerraflow-light) 100%);
    --gradient-magic: linear-gradient(135deg, var(--magic-purple) 0%, var(--magic-blue) 100%);
    --gradient-surface: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga' 1, 'clig' 1, 'calt' 1;
    font-variant-ligatures: common-ligatures contextual;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    color: var(--text-primary);
    background: #181918; /* Match the pure dark background */
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
    width: 100%; /* Ensure body doesn't exceed viewport */
    max-width: 100vw; /* Enforce viewport constraint */
    left: 0; /* Ensure body starts at left edge */
    top: 0; /* Ensure body starts at top edge */
}

/* === PURE DARK BACKGROUND WITH SUBTLE WARMTH === */
/* Pitch black broken with barely visible warmth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: #181918; /* Pure dark with subtle warm tint */
}

/* TEMPORARILY DISABLED: Global Magical Cinder Field Container */
/*
#global-cinder-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}
*/

/* TEMPORARILY DISABLED: Enhanced Cinder Particles */
/*
.global-cinder {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    /* Animation and styling now handled entirely by JavaScript */
/*}*/

/* TEMPORARILY DISABLED: Cinder variations now handled entirely by JavaScript */
/*
.global-sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    /* Animation and styling now handled entirely by JavaScript */
/*}

.global-micro-sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    /* Animation and styling now handled entirely by JavaScript */
/*}*/

/* Cinder animations now handled entirely by JavaScript */

/* === TYPOGRAPHY SYSTEM === */
.text-mono {
    font-family: var(--font-mono);
    font-feature-settings: 'liga' 1, 'calt' 1;
}

.text-serif {
    font-family: var(--font-serif);
}

.text-magic {
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.text-aerraflow {
    color: var(--aerraflow-primary);
    font-weight: 600;
    text-shadow: 0 0 10px var(--aerraflow-glow);
}

/* === GAMING-SPECIFIC COMPONENTS === */
.gaming-stat-block {
    background: var(--surface-200);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
}

.gaming-stat-block:hover {
    border-color: var(--aerraflow-primary);
    box-shadow: var(--shadow-glow);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--aerraflow-primary);
    display: block;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

/* === RPG/TABLETOP GAMING COMPONENTS === */

/* Character/Player Status Indicators */
.player-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-status.online {
    background: rgba(74, 153, 96, 0.2);
    color: var(--success);
    border: 1px solid rgba(74, 153, 96, 0.3);
}

.player-status.offline {
    background: rgba(168, 166, 159, 0.2);
    color: var(--text-tertiary);
    border: 1px solid rgba(168, 166, 159, 0.3);
}

.player-status.in-game {
    background: rgba(245, 158, 11, 0.2);
    color: var(--aerraflow-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

.player-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Guild/Party Member Cards */
.party-member-card {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.party-member-card:hover {
    border-color: var(--magic-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-raise);
}

.party-member-card.party-leader::before {
    content: '👑';
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-sm);
}

/* Session/Game Activity Indicators */
.session-timer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.session-timer.active {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 8px rgba(74, 153, 96, 0.3);
}

.session-timer::before {
    content: '⏱️';
}

/* Real-time Notifications */
.notification-toast {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-raise);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-color: var(--success);
    background: rgba(74, 153, 96, 0.1);
}

.notification-toast.warning {
    border-color: var(--warning);
    background: rgba(212, 148, 30, 0.1);
}

.notification-toast.error {
    border-color: var(--error);
    background: rgba(200, 84, 80, 0.1);
}

/* Realm-Specific Theming */
.realm-aerraflow {
    --realm-primary: var(--aerraflow-primary);
    --realm-accent: var(--aerraflow-light);
    --realm-bg: var(--bg-primary);
}

.realm-community {
    --realm-primary: var(--magic-blue);
    --realm-accent: var(--magic-purple);
    --realm-bg: var(--bg-secondary);
}

.realm-aerra {
    --realm-primary: var(--magic-green);
    --realm-accent: var(--success);
    --realm-bg: var(--bg-tertiary);
}

.realm-legal {
    --realm-primary: var(--text-secondary);
    --realm-accent: var(--text-tertiary);
    --realm-bg: var(--surface-200);
}

/* Gaming Progress Bars (XP, Health, etc.) */
.gaming-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.gaming-progress-fill {
    height: 100%;
    background: var(--gradient-aerraflow);
    border-radius: var(--radius-lg);
    transition: width 0.5s ease;
    position: relative;
}

.gaming-progress-fill.xp {
    background: var(--gradient-aerraflow);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.gaming-progress-fill.health {
    background: linear-gradient(135deg, var(--success) 0%, #5fb574 100%);
    box-shadow: 0 0 8px rgba(74, 153, 96, 0.4);
}

.gaming-progress-fill.mana {
    background: var(--gradient-magic);
    box-shadow: 0 0 8px rgba(154, 127, 184, 0.4);
}

/* Interactive Gaming Elements */
.dice-roll-button {
    background: var(--gradient-aerraflow);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dice-roll-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.dice-roll-button:active {
    transform: scale(0.95);
}

.dice-roll-button.rolling {
    animation: roll 0.5s ease-in-out;
}

/* Combat/Initiative Tracker */
.initiative-tracker {
    background: var(--surface-100);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.initiative-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.initiative-item:last-child {
    border-bottom: none;
}

.initiative-item.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--aerraflow-primary);
}

.initiative-item.player {
    border-left: 3px solid var(--magic-blue);
}

.initiative-item.npc {
    border-left: 3px solid var(--warning);
}

.initiative-item.enemy {
    border-left: 3px solid var(--error);
}

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes roll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-aerraflow-glow {
    animation: aerraflowGlow 3s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* === ERROR UI === */
#blazor-error-ui {
    background: rgba(26, 27, 26, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.error-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 500px;
    margin: var(--space-4);
    text-align: center;
    box-shadow: var(--shadow-raise-lg);
}

.error-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--error);
}

.error-message h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.error-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.dismiss {
    cursor: pointer;
}

/* === MOBILE-FIRST RESPONSIVE IMPROVEMENTS === */
@media (max-width: 768px) {
    /* Ensure html and body are positioned correctly */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
        left: 0;
        right: auto;
        margin: 0;
        padding: 0;
    }
    
    /* Ensure page wrapper is correctly positioned */
    .page {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
        left: 0;
        right: auto;
        margin: 0;
        padding: 0;
    }
    
    /* Prevent horizontal overflow on all elements */
    *, *::before, *::after {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
    
    /* Container improvements for mobile - remove padding when nested */
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Remove container padding when inside main-content */
    .main-content .container,
    .main-content-full .container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Reduced font sizes for mobile */
    :root {
        --text-xs: 0.65rem;
        --text-sm: 0.75rem;
        --text-base: 0.85rem;
        --text-lg: 0.95rem;
        --text-xl: 1.05rem;
        --text-2xl: 1.2rem;
        --text-3xl: 1.4rem;
        --text-4xl: 1.7rem;
        --text-5xl: 2.1rem;
        --text-6xl: 2.8rem;
    }
    
    /* Navigation adjustments */

    /* Main content containers - adjust for new navigation */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        margin-right: 0;
        margin-bottom: 56px; /* Space for bottom mobile nav */
        padding: 0; /* Let inner containers handle their own padding */
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: auto;
        position: relative;
        box-sizing: border-box;
        transform: none;
    }

    .main-content-full {
        padding: 0;
        padding-top: 60px; /* Top space for burger menu */
        padding-bottom: 56px; /* Space for bottom mobile nav */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: auto;
        position: relative;
        box-sizing: border-box;
        transform: none;
    }

    .main-content-no-nav,
    .main-content-full.no-nav {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        left: 0;
        right: auto;
        width: 100%;
        max-width: 100vw;
    }
    

}

/* === LEGAL CONTENT MOBILE IMPROVEMENTS === */
.legal-page-content {
    width: 100%;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
    max-width: 900px;
}

.legal-page-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--aerraflow-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-page-content h2 {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    font-weight: 600;
    margin: var(--space-8) 0 var(--space-4) 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: var(--space-2);
}

.legal-page-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    margin: var(--space-6) 0 var(--space-3) 0;
    color: var(--aerraflow-primary);
}

.legal-meta {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-secondary);
}

.legal-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.legal-text p {
    margin-bottom: var(--space-4);
}

.legal-contact {
    background: var(--surface-100);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.legal-contact p {
    margin-bottom: var(--space-3);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.legal-contact strong {
    color: var(--aerraflow-primary);
    font-weight: 600;
}

.legal-text ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.legal-text li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.legal-text table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.legal-text th,
.legal-text td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-text th {
    background: var(--surface-200);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-text a {
    color: var(--aerraflow-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.legal-text a:hover {
    border-bottom-color: var(--aerraflow-primary);
}

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

.legal-section:last-child {
    margin-bottom: 0;
}

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

.legal-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.legal-card {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--transition-base);
    text-decoration: none;
}

.legal-card:hover {
    border-color: var(--aerraflow-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-raise);
}

.legal-card h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-primary);
}

.legal-card h3 a {
    color: inherit;
    text-decoration: none;
}

.legal-card p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.5;
    margin: 0;
}

.legal-footer {
    text-align: center;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-8);
    color: var(--text-tertiary);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
}

/* MOBILE-SPECIFIC LEGAL IMPROVEMENTS */
@media (max-width: 768px) {
    /* Remove all horizontal framing on mobile */
    .blog-entry {
        background: transparent;
        backdrop-filter: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Keep only bottom border for vertical separation */
    .blog-entry:nth-child(even),
    .blog-entry:nth-child(odd) {
        background: transparent;
        backdrop-filter: none;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    
    /* Remove redundant legal container padding */
    .legal-page-content {
        width: 100%;
        max-width: 100%;
        padding: 0; /* First layer: Remove all padding */
        margin: 0;
        box-sizing: border-box;
        background: transparent;
        border: none;
    }

    .legal-content {
        max-width: 100%;
        width: 100%;
        padding: 0; /* Second layer: Remove all padding */
        margin: 0;
        box-sizing: border-box;
        background: transparent;
        border: none;
        border-radius: 0;
    }
    
    /* Legal text handles its own minimal padding */
    .legal-text {
        background: transparent;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        padding: 0; /* Remove container padding completely */
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Add padding only to individual text elements */
    .legal-page-content h1 {
        padding: 0 8px;
        margin-bottom: var(--space-4);
    }
    
    .legal-meta {
        margin: var(--space-4) 8px;
        padding: var(--space-3);
        background: rgba(22, 23, 22, 0.6);
        border-radius: var(--radius-base);
    }
    
    .legal-text h2 {
        margin-top: var(--space-6);
        margin-bottom: var(--space-3);
        padding: 0 8px;
    }
    
    .legal-text h3 {
        margin-top: var(--space-4);
        margin-bottom: var(--space-2);
        padding: 0 8px;
    }

    .legal-links {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: 0 8px;
        margin: var(--space-6) 0;
    }

    .legal-card {
        padding: var(--space-3);
        margin: 0;
    }

    /* Legal contact - no framing, minimal padding */
    .legal-contact {
        margin: var(--space-4) 0;
        padding: var(--space-3) 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        box-shadow: none;
    }

    .legal-text table {
        font-size: 0.75rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
        padding: 0 8px;
    }

    .legal-text th,
    .legal-text td {
        padding: var(--space-2);
    }

    .legal-text p {
        margin-bottom: var(--space-3);
        padding: 0 8px;
    }
    
    .legal-text ul,
    .legal-text ol {
        margin: var(--space-3) 0;
        padding-left: calc(var(--space-6) + 8px);
        padding-right: 8px;
    }

    .legal-footer {
        padding: var(--space-6) 8px;
        margin-top: var(--space-6);
    }

    .legal-section {
        margin-bottom: var(--space-6);
        padding: 0 8px;
    }

    .legal-text li {
        margin-bottom: var(--space-2);
    }
}

/* Ensure all elements respect viewport boundaries */
@media (max-width: 768px) {
    /* Fix any element that might overflow on mobile */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Better text handling */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
    }

    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Images should never overflow */
    img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Additional mobile utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mobile-no-padding {
        padding: 0 !important;
    }

    .mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Ensure all content respects mobile viewport */
    .page > *, 
    main > *, 
    .main-content > *,
    .main-content-full > * {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Cards and sections should have consistent spacing */
    .card {
        margin: 0 0 var(--space-4) 0;
        width: 100%;
    }
    
    /* Buttons should be full-width on mobile for better touch */
    .btn {
        min-height: 44px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto var(--space-2) auto;
    }
    
    /* Override any overly restrictive width constraints - Keep !important here for safety */
    .main-content *,
    .main-content-full * {
        max-width: 100% !important;
    }
    
    /* Special handling for wide content like tables */
    table, .table-responsive {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Prevent any content from breaking out of viewport - Keep !important for safety */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* === GENERAL PAGE LAYOUTS === */
.page-header {
    padding: var(--space-12) 0 var(--space-8) 0;
    text-align: center;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === GRID SYSTEMS === */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === SECTION SPACING === */
.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-8) 0;
}

.section-lg {
    padding: var(--space-20) 0;
}

/* === RESPONSIVE GRID AND LAYOUT IMPROVEMENTS === */
@media (max-width: 768px) {
    /* Force all grids to single column on mobile */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto-fit,
    .grid-auto-fill {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Adjust page headers for mobile */
    .page-header {
        padding: var(--space-8) 0 var(--space-6) 0;
    }
    
    .page-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-3);
    }
    
    .page-subtitle {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }
    
    /* Reduce section spacing on mobile */
    .section {
        padding: var(--space-8) 0;
    }
    
    .section-sm {
        padding: var(--space-6) 0;
    }
    
    .section-lg {
        padding: var(--space-12) 0;
    }
    
    /* Ensure cards and content have good mobile spacing */
    .card {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    /* Make sure all interactive elements are touch-friendly */
    a, button, [role="button"], .btn, .card {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Fix any element that might overflow on mobile */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Improve readability on mobile */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: var(--space-3);
    }
    
    p {
        line-height: 1.6;
        margin-bottom: var(--space-3);
    }
    
    /* Make sure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* === MOBILE-SPECIFIC UTILITIES === */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .mobile-no-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
        gap: var(--space-3) !important;
    }
}

/* Global Font Override - Force Comfortaa everywhere */
* {
    font-family: inherit !important;
}

/* Standard HTML elements use Comfortaa */
p, span, div, section, article, aside, nav, header, footer, main,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea, label {
    font-family: 'Comfortaa', var(--font-sans) !important;
}

/* Keep monospace for code elements */
code, kbd, pre, samp, .text-mono, .font-mono, .btn-mono {
    font-family: var(--font-mono) !important;
}

/* Typography Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Mobile container improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
        max-width: 100%;
    }
}

/* === 3D CARD SYSTEM === */
.card {
    background: rgba(26, 27, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
    padding: var(--space-6);
}

.card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.card-inset {
    background: rgba(20, 21, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

/* === BUTTON SYSTEM === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-base);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px; /* Better touch target */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: rgba(245, 158, 11, 0.9);
    color: var(--bg-primary);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: rgba(26, 27, 26, 0.8);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--aerraflow-primary);
}



/* === DESKTOP MAIN CONTENT LAYOUTS === */
@media (min-width: 769px) {
    .main-content {
        margin-left: 180px;
        margin-right: 60px;
        margin-top: 0;
        padding: var(--space-4) var(--space-6);
        width: calc(100% - 240px);
        max-width: calc(100% - 240px);
        position: relative;
        box-sizing: border-box;
    }

    .main-content-full {
        margin-left: 180px;
        margin-right: 60px;
        margin-top: 0;
        padding: 0;
        width: calc(100% - 240px);
        max-width: calc(100% - 240px);
        position: relative;
        box-sizing: border-box;
    }

    /* For layouts without world navigation bar */
    .main-content-no-nav,
    .main-content-full.no-nav {
        margin-top: 0;
        padding-top: 20px;
    }
}

/* === STUDIO WORLD NAVIGATION === */
.studio-nav {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-raise);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-4) 0;
}

.studio-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.studio-nav-title h1 {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.studio-nav-subtitle {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.studio-nav-menu {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.studio-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-raise-sm);
    text-transform: lowercase;
    min-height: 44px; /* Better touch target */
}

.studio-nav-link:hover {
    color: var(--aerraflow-primary);
    background: var(--bg-overlay);
    box-shadow: var(--shadow-raise);
    transform: translateY(-1px);
}

.studio-nav-link.active {
    color: var(--text-primary);
    background: var(--aerraflow-primary);
    box-shadow: var(--shadow-glow);
}

.studio-nav-link span {
    font-size: var(--text-base);
}

/* Mobile studio navigation improvements */
@media (max-width: 768px) {
    .studio-nav {
        padding: var(--space-3) 0;
    }
    
    .studio-nav-content {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
    
    .studio-nav-title h1 {
        font-size: var(--text-xl);
    }
    
    .studio-nav-menu {
        width: 100%;
        flex-wrap: wrap;
        gap: var(--space-3);
        justify-content: stretch;
    }
    
    .studio-nav-link {
        flex: 1;
        min-width: 120px;
        padding: var(--space-3) var(--space-4);
        justify-content: center;
        text-align: center;
        min-height: 48px; /* Larger touch target on mobile */
    }
}

/* === SUBTLE CONTENT FRAMING SYSTEM === */
/* Alternating subtle overlays for content readability */

/* Base content frame - very subtle */
.content-frame {
    background: rgba(22, 23, 22, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: 0;
    border: 1px solid rgba(253, 252, 247, 0.04);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(253, 252, 247, 0.02) inset;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile content frame adjustments */
@media (max-width: 768px) {
    .content-frame {
        padding: var(--space-4);
        border-radius: var(--radius-base);
        margin: 0;
        width: 100%;
    }
    
    /* For content frames inside main-content, remove margins */
    .main-content .content-frame,
    .main-content-full .content-frame {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
}

/* Alternating content sections for easy distinction */
.info-section {
    background: rgba(22, 23, 22, 0.4); /* Darker, more subtle */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(253, 252, 247, 0.03);
    margin: 0;
    border-radius: 0;
}

.info-section:nth-child(even) {
    background: rgba(28, 29, 28, 0.45); /* Slightly lighter for distinction */
    backdrop-filter: blur(6px);
    border-color: rgba(253, 252, 247, 0.04);
}

.info-section:nth-child(odd) {
    background: rgba(20, 21, 20, 0.4); /* Slightly darker */
    backdrop-filter: blur(6px);
    border-color: rgba(253, 252, 247, 0.025);
}

/* Blog content with alternating subtle backgrounds */
.blog-entry {
    background: rgba(22, 23, 22, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 252, 247, 0.04);
    margin: 0;
    border-radius: 0;
}

.blog-entry:nth-child(even) {
    background: rgba(25, 26, 25, 0.55);
    backdrop-filter: blur(8px);
    border-color: rgba(253, 252, 247, 0.05);
}

.blog-entry:nth-child(odd) {
    background: rgba(20, 21, 20, 0.45);
    backdrop-filter: blur(8px);
    border-color: rgba(253, 252, 247, 0.03);
}

/* Legal content with subtle framing - DESKTOP ONLY */
@media (min-width: 769px) {
    .legal-content,
    .legal-text {
        background: rgba(22, 23, 22, 0.6);
        backdrop-filter: blur(8px);
        border-radius: var(--radius-lg);
        padding: var(--space-6);
        margin: var(--space-4) 0;
        border: 1px solid rgba(253, 252, 247, 0.04);
    }
}

/* Mobile legal content - no framing, clean layout */
@media (max-width: 768px) {
    .legal-content,
    .legal-text {
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
}

/* === INFORMATIONAL PAGES UNIFIED SYSTEM === */

/* Base informational page layout */
.info-page {
    width: 100%;
    min-height: 100vh;
    background: transparent; /* Let the magical background show through */
}

.info-page-header {
    text-align: center;
    padding: var(--space-12) var(--space-4) var(--space-8) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.info-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content sections */
.info-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.info-section {
    padding: var(--space-8) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    box-sizing: border-box;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section:nth-child(even) {
    background: var(--bg-secondary);
}

.info-section-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent edge touching */
}

.info-section-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--aerraflow-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-section-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.info-section-content p {
    margin-bottom: var(--space-4);
}

.info-section-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3) 0;
    font-weight: 600;
}

.info-section-content ul, 
.info-section-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.info-section-content li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.info-section-content strong {
    color: var(--aerraflow-primary);
    font-weight: 600;
}

.info-section-content a {
    color: var(--aerraflow-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.info-section-content a:hover {
    border-bottom-color: var(--aerraflow-primary);
}

/* Special content blocks */
.info-highlight {
    background: var(--surface-200);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    border-left: 4px solid var(--aerraflow-primary);
}

.info-quote {
    background: var(--surface-100);
    border-left: 4px solid var(--magic-purple);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Grid layouts for informational content */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.info-card {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
}

.info-card:hover {
    border-color: var(--aerraflow-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-raise);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
    display: block;
}

.info-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.info-card-content {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* CTA sections for informational pages */
.info-cta {
    background: var(--gradient-surface);
    text-align: center;
    padding: var(--space-12) var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.info-cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.info-cta-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Mobile optimizations for informational pages */
@media (max-width: 768px) {
    .info-page-header {
        padding: var(--space-8) 15px var(--space-6) 15px;
    }
    
    .info-section {
        padding: var(--space-6) 0;
    }
    
    .info-section-inner {
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .info-section-content {
        font-size: 0.85rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: 0 15px;
    }
    
    .info-card {
        margin: 0;
    }
    
    .info-highlight,
    .info-quote {
        margin: var(--space-4) 15px;
    }
    
    .info-cta {
        margin: var(--space-6) 15px;
    }
}

/* === LEGAL PAGES IMPROVEMENTS === */