/* Legal Pages Specific Styles */

/* Legal Header */
.legal-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.legal-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.legal-summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.legal-summary p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Table of Contents */
.legal-toc {
    padding: 60px 0;
    background: #f8fafc;
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.toc-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 40px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    text-align: left;
}

.toc-link {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.toc-link:hover {
    color: #ff6b35;
    border-left-color: #ff6b35;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background: white;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Account for fixed nav */
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
}

.subsection-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px 0;
}

.section-content {
    color: #4a5568;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 16px;
}

.legal-list {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-list li {
    margin-bottom: 8px;
    position: relative;
}

.legal-list li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Custom list styling */
.legal-list li::marker {
    color: #ff6b35;
}

/* Legal Links */
.legal-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-link:hover {
    border-bottom-color: #ff6b35;
}

/* Contact Information */
.contact-info {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid #ff6b35;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Highlight boxes for important information */
.legal-highlight {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.legal-highlight h4 {
    color: #ea580c;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-header {
        padding: 100px 0 40px;
    }
    
    .legal-content {
        padding: 60px 0;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .subsection-heading {
        font-size: 1.125rem;
    }
    
    .legal-list {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-summary {
        padding: 20px;
    }
    
    .legal-section {
        margin-bottom: 40px;
    }
    
    .section-heading {
        font-size: 1.375rem;
    }
    
    .contact-info {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .nav,
    .footer,
    .legal-toc {
        display: none;
    }
    
    .legal-header {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .section-heading {
        border-bottom: 1px solid #ccc;
        color: black;
    }
    
    .legal-link {
        color: black;
        text-decoration: underline;
    }
    
    .contact-info {
        background: none;
        border: 1px solid #ccc;
    }
}