/* Additional offline improvements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* External links are clickable */
a[href^="http"] {
    cursor: pointer;
}

/* Better responsive images */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Hide potentially broken external content */
iframe[src*="youtube.com"],
iframe[src*="google.com"],
iframe[src*="facebook.com"],
script[src*="google-analytics"],
script[src*="gtag"] {
    display: none !important;
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0 auto;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    /* Stack elements vertically on mobile */
    .row, .flex, .grid {
        flex-direction: column !important;
        display: block !important;
    }
}

/* Print styles */
@media print {
    body { color: black !important; background: white !important; }
    .no-print, nav, footer, .btn, button { display: none !important; }
    a::after { content: " (" attr(href) ")"; }
    img { max-height: 200px; }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* Better text contrast */
.text-light {
    color: #333 !important;
}

/* Fallback for missing fonts */
@font-face {
    font-family: 'fallback-sans';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
}

/* Legal Pages Styles (Privacy Policy & Terms of Use) */
.legal-page-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-color-dark) 0%, var(--secondary-color-dark) 100%);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color-card-dark);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
}

.legal-content .last-updated {
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color-dark);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2::before {
    content: '§';
    color: var(--primary-color);
    font-weight: bold;
}

.legal-section h3 {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin: 20px 0 15px;
}

.legal-section p {
    color: var(--text-color-light);
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-color-light);
    opacity: 0.9;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.legal-section ul li strong {
    color: var(--accent-color);
}

.legal-content .cta-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color-dark);
    flex-wrap: wrap;
}

.legal-content .cta-section .btn {
    padding: 15px 30px;
    font-size: 1rem;
    min-width: 200px;
}

.legal-content .cta-section .btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.legal-content .cta-section .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.legal-content .cta-section .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile responsive for legal pages */
@media (max-width: 768px) {
    .legal-page-section {
        padding: 100px 15px 40px;
    }
    
    .legal-content {
        padding: 25px 20px;
        border-radius: var(--border-radius-md);
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-content .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-content .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }
}
