/* Legal Pages Styling - Escape Matrix Academy */

/* Ensure consistent typography and spacing for legal content */
.legal-content {
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #f87171;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #fca5a5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content h3 {
        font-size: 1.125rem;
    }
    
    .legal-content {
        padding: 1rem;
    }
}

/* Print styles for legal documents */
@media print {
    .legal-content {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .legal-content h1,
    .legal-content h2,
    .legal-content h3 {
        color: #000000 !important;
    }
    
    .legal-content p,
    .legal-content li {
        color: #000000 !important;
    }
    
    .legal-content a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
    
    /* Hide navigation and footer when printing */
    nav,
    footer,
    .floating-nav {
        display: none !important;
    }
}

/* Accessibility improvements */
.legal-content {
    scroll-behavior: smooth;
}

.legal-content h2:target,
.legal-content h3:target {
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

/* Focus styles for better keyboard navigation */
.legal-content a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

/* Enhanced readability */
.legal-content {
    max-width: none;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .legal-content {
        font-size: 1.125rem;
    }
}

/* Footer Legal Links Styling */
.footer-legal-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-legal-links a:hover {
    color: #d1d5db;
}

.footer-legal-links a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

/* Copyright section legal links */
.copyright-legal-links {
    gap: 0.75rem;
}

.copyright-legal-links a {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright-legal-links a:hover {
    color: #e5e7eb;
}

.copyright-legal-links a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

/* Mobile responsiveness for footer legal links */
@media (max-width: 768px) {
    .footer-legal-links {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .copyright-legal-links {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }

    .copyright-legal-links span {
        display: none; /* Hide separators on mobile */
    }
}
