/* Legal Pages Specific Styles */

/* Legal Page Body - Force background for all legal pages */
body {
    background: linear-gradient(135deg, #0a2e30 0%, #183233 50%, #2B5F65 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Logo link styling for legal pages */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
}

/* Legal Container */
.legal-container {
    padding: 140px 20px 80px;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
}

/* Legal Header */
.legal-header {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(43, 95, 101, 0.1);
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2B5F65;
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-meta {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: rgba(43, 95, 101, 0.05);
    border-radius: 8px;
    display: inline-block;
}

.legal-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Content Container */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Legal Sections Wrapper */
.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-sections ul,
.legal-sections ol {
    list-style: none !important;
    padding-left: 0;
}

.legal-sections li {
    list-style: none !important;
}

/* Individual Legal Section */
.legal-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(43, 95, 101, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Section Headings */
.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B5F65;
    margin-bottom: 24px;
    line-height: 1.3;
    border-bottom: 2px solid rgba(43, 95, 101, 0.1);
    padding-bottom: 12px;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #183233;
    margin-bottom: 16px;
    margin-top: 24px;
    line-height: 1.3;
}

/* Section Content */
.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none !important;
}

.legal-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    list-style: none !important;
}

.legal-section li::before {
    content: '•';
    color: #2B5F65;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
}

/* Strong text styling */
.legal-section strong {
    color: #2B5F65;
    font-weight: 600;
}

/* Links in legal content */
.legal-section a {
    color: #2B5F65;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(43, 95, 101, 0.3);
    transition: all 0.2s ease;
}

.legal-section a:hover {
    color: #183233;
    border-bottom-color: #183233;
}

/* Subsections */
.subsection {
    background: rgba(43, 95, 101, 0.03);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid #2B5F65;
}

.subsection h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Highlight section (for privacy overview) */
.legal-section.highlight {
    background: linear-gradient(135deg, #2B5F65 0%, #183233 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.legal-section.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.legal-section.highlight h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.legal-section.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.legal-section.highlight strong {
    color: white;
}

/* Privacy highlights grid */
.privacy-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.privacy-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-highlight h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.privacy-highlight p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

/* Important notes */
.important-note {
    background: rgba(43, 95, 101, 0.05);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid rgba(43, 95, 101, 0.2);
    position: relative;
}

.important-note::before {
    content: '⚠️';
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 1.2rem;
}

.important-note p {
    margin-left: 32px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Legal Footer */
.legal-footer {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

.contact-cta {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(43, 95, 101, 0.08);
    border: 1px solid rgba(43, 95, 101, 0.1);
}

.contact-cta h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2B5F65;
    margin-bottom: 16px;
}

.contact-cta p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.contact-cta a {
    color: #2B5F65;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(43, 95, 101, 0.3);
    transition: all 0.2s ease;
}

.contact-cta a:hover {
    color: #183233;
    border-bottom-color: #183233;
}

/* Navigation active state for legal pages */
.legal-page .nav-link.active {
    color: #2B5F65;
    font-weight: 600;
}

.legal-page .nav-link.active::after {
    width: 100%;
}

/* Table of contents (if needed) */
.table-of-contents {
    background: rgba(43, 95, 101, 0.05);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(43, 95, 101, 0.1);
}

.table-of-contents h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2B5F65;
    margin-bottom: 20px;
    margin-top: 0;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(43, 95, 101, 0.1);
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents li::before {
    display: none;
}

.table-of-contents a {
    color: #2B5F65;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border: none;
}

.table-of-contents a:hover {
    color: #183233;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-container {
        padding: 120px 16px 60px;
    }
    
    .legal-header {
        padding: 40px 24px;
        margin-bottom: 30px;
        border-radius: 16px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-meta {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .legal-content {
        gap: 24px;
    }
    
    .legal-section {
        padding: 28px 20px;
        border-radius: 12px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .privacy-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .privacy-highlight {
        padding: 20px;
    }
    
    .contact-cta {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 110px 12px 50px;
    }
    
    .legal-header {
        padding: 32px 20px;
        border-radius: 12px;
    }
    
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 24px 16px;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }
    
    .subsection {
        padding: 20px;
    }
    
    .important-note {
        padding: 20px;
    }
    
    .important-note p {
        margin-left: 28px;
    }
}

/* Print styles for legal pages */
@media print {
    .header,
    .footer,
    .mobile-menu {
        display: none !important;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .legal-section.highlight {
        background: white !important;
        color: black !important;
    }
    
    .legal-section.highlight h2 {
        color: #2B5F65 !important;
    }
    
    .legal-section.highlight p {
        color: #444 !important;
    }
    
    .privacy-highlights {
        display: block;
    }
    
    .privacy-highlight {
        background: #f8f9fa !important;
        color: #444 !important;
        margin-bottom: 10px;
    }
}
