/* Legal Page Styles - Following modern design principles */

/* Main legal content layout */
.legal-main {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Legal header section */
.legal-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFE4B5 0%, #DEB887 100%);
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: #5D4E37;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.last-updated {
    font-size: 1rem;
    color: #8B4513;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Legal content sections */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.legal-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE4B5;
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #8B4513;
}

.legal-info {
    line-height: 1.8;
    color: #333;
}

.legal-info p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

/* Company and contact details */
.company-details,
.contact-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #8B4513;
}

.company-details p,
.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.company-details p:last-child,
.contact-details p:last-child {
    margin-bottom: 0;
}

/* Legal links */
.legal-link {
    color: #8B4513;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #A0522D;
    text-decoration-color: #A0522D;
}

/* Strong text styling */
.legal-info strong {
    color: #8B4513;
    font-weight: 600;
}

/* Subsection headings */
.legal-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8B4513;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #FFE4B5;
}

/* Lists styling */
.legal-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-info ul li::marker {
    color: #8B4513;
}

/* Active link in footer */
.footer-links .active {
    color: #8B4513;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-main {
        padding-top: 70px;
    }
    
    .legal-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-info {
        font-size: 1rem;
    }
    
    .company-details,
    .contact-details {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 0 0.5rem 2rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
    
    .legal-header {
        padding: 1.5rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .legal-main {
        padding-top: 0;
        background: white;
    }
    
    .legal-header {
        background: none;
        color: black;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .legal-link {
        color: black;
        text-decoration: underline;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .legal-section {
        transition: none;
    }
    
    .legal-section:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .legal-section {
        border: 2px solid #000;
    }
    
    .legal-section h2 {
        color: #000;
    }
    
    .legal-link {
        color: #0000FF;
    }
}
