/**
 * Legal Pages Styles
 * Additional styles for Privacy Policy, Terms of Service, and About Us pages
 * Navigation styles are inherited from main.css
 */

/* Back to Home Button */
.back-to-home {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e8ecef;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    margin-left: 1rem;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.back-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn svg {
    transition: transform 0.2s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Legal Content Container */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e8ecef;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Legal Body */
.legal-body {
    line-height: 1.7;
    color: #495057;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecef;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #495057;
    margin: 2rem 0 1rem 0;
}

.legal-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section li strong {
    font-weight: 600;
    color: #1f2937;
}

/* Legal Footer */
.legal-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e8ecef;
}

.legal-footer p {
    color: #6c757d;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Active Navigation Link */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Enhanced Typography for Legal Pages */
.legal-body strong {
    font-weight: 600;
    color: #1f2937;
}

.legal-body em {
    font-style: italic;
    color: #4b5563;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .back-to-home {
        padding: 0.75rem 0;
    }

    .back-btn {
        margin-left: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .legal-content {
        padding: 1rem 0;
    }

    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .legal-section h3 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .legal-section p {
        text-align: left;
        margin-bottom: 1rem;
    }

    .legal-section ul {
        padding-left: 1.5rem;
        margin: 1rem 0;
    }

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

    .legal-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .header,
    .footer,
    .nav-toggle {
        display: none;
    }
    
    .legal-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .legal-title {
        color: #000;
        font-size: 24pt;
    }
    
    .legal-section h2 {
        color: #000;
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .legal-section h3 {
        color: #000;
        font-size: 14pt;
        page-break-after: avoid;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-body {
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .legal-content * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .legal-section h2 {
        border-bottom-width: 2px;
        border-bottom-color: #000;
    }
    
    .legal-footer {
        border-width: 2px;
        border-color: #000;
    }
}

/* Focus Styles for Legal Page Links */
.legal-body a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-body a:hover {
    color: #1d4ed8;
}

.legal-body a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Table Styles (if needed for legal content) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.legal-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.legal-table tr:hover {
    background-color: #f9fafb;
}

/* Code Blocks in Legal Content */
.legal-code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Blockquotes in Legal Content */
.legal-blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background: #f8fafc;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 8px 8px 0;
}

/* Warning/Notice Boxes */
.legal-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.legal-notice.warning {
    background: #fee2e2;
    border-color: #ef4444;
}

.legal-notice.info {
    background: #dbeafe;
    border-color: #3b82f6;
}

.legal-notice p {
    margin: 0;
    color: #374151;
}

/* Smooth Scrolling for Legal Page Anchors */
html {
    scroll-behavior: smooth;
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.contact-item p {
    margin-bottom: 0.75rem;
    text-align: left;
}

.contact-item p:last-child {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* FAQ Styles */
.faq-item {
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.faq-item p {
    margin-bottom: 0;
    text-align: left;
    color: #495057;
    line-height: 1.6;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .contact-item {
        padding: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }
}

/* Legal Page Specific Animations */
.legal-content {
    animation: fadeInUp 0.6s ease-out;
}

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