/* ================================
   LEGAL PAGES STYLING - SIMPLE & BULLETPROOF
   Maximum Heading Visibility
   ================================ */

/* ABSOLUTE HEADING OVERRIDE - MUST BE FIRST */
* h1, * h2, * h3, * h4, * h5, * h6,
h1, h2, h3, h4, h5, h6,
.legal-document h1, .legal-document h2, .legal-document h3, .legal-document h4, .legal-document h5, .legal-document h6,
.legal-section h1, .legal-section h2, .legal-section h3, .legal-section h4, .legal-section h5, .legal-section h6,
.legal-subsection h1, .legal-subsection h2, .legal-subsection h3, .legal-subsection h4, .legal-subsection h5, .legal-subsection h6,
.company-info h1, .company-info h2, .company-info h3, .company-info h4, .company-info h5, .company-info h6,
.contact-info h1, .contact-info h2, .contact-info h3, .contact-info h4, .contact-info h5, .contact-info h6,
.dmca-agent-info h1, .dmca-agent-info h2, .dmca-agent-info h3, .dmca-agent-info h4, .dmca-agent-info h5, .dmca-agent-info h6,
.fine-print h1, .fine-print h2, .fine-print h3, .fine-print h4, .fine-print h5, .fine-print h6,
.legal-toc h1, .legal-toc h2, .legal-toc h3, .legal-toc h4, .legal-toc h5, .legal-toc h6 {
    color: #000000 !important;
    font-weight: bold !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: #000000 !important;
    background: transparent !important;
}

/* Legal Header Section */
.legal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 100px 0 60px 0;
    position: relative;
    border-bottom: 3px solid #6c5ce7;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.legal-title-block {
    position: relative;
    z-index: 2;
}

.legal-title-block h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff !important;
    margin-bottom: 15px;
    letter-spacing: -1px;
    -webkit-text-fill-color: #ffffff !important;
}

.legal-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Legal Navigation */
.legal-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.legal-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.legal-nav a:hover {
    color: #ffffff;
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.2);
    transform: translateY(-2px);
}

/* Legal Content Section */
.legal-content {
    background: #f8f9fa;
    padding: 80px 0;
    min-height: 60vh;
}

.legal-document {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 60px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    color: #333333;
}

/* Text Content */
.legal-document p {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-document strong,
.legal-document b {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Legal Section Styling */
.legal-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: bold !important;
    color: #000000 !important;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6c5ce7;
    position: relative;
    -webkit-text-fill-color: #000000 !important;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #f39c12;
}

.legal-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.legal-section p strong {
    color: #000000;
    font-weight: bold;
}

/* Legal Subsections */
.legal-subsection {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #6c5ce7;
    border-radius: 5px;
}

.legal-subsection h3 {
    font-size: 1.3rem;
    font-weight: bold !important;
    color: #000000 !important;
    margin-bottom: 15px;
    -webkit-text-fill-color: #000000 !important;
}

.legal-subsection p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333333;
}

.legal-subsection p strong {
    color: #000000;
    font-weight: bold;
}

/* Legal Lists */
.legal-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.legal-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.legal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #6c5ce7;
    font-weight: bold;
    font-size: 1.1rem;
}

.legal-list li strong {
    color: #000000;
    font-weight: bold;
}

/* Company Information Styling */
.company-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.company-info h3,
.company-info h4 {
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 1.25rem;
    margin-bottom: 15px;
    -webkit-text-fill-color: #000000 !important;
}

.info-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-item strong {
    color: #000000;
    font-weight: bold;
    display: inline-block;
    min-width: 160px;
}

/* Contact Information */
.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.contact-info h3,
.contact-info h4 {
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 1.25rem;
    margin-bottom: 15px;
    -webkit-text-fill-color: #000000 !important;
}

.contact-method {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-method strong {
    color: #000000;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* DMCA Specific Styling */
.dmca-agent-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #6c5ce7;
    margin: 30px 0;
}

.agent-details h4 {
    color: #000000 !important;
    font-size: 1.5rem;
    font-weight: bold !important;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    -webkit-text-fill-color: #000000 !important;
}

.dmca-protection {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.dmca-badge img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.dmca-badge p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Legal Footer */
.legal-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #6c5ce7;
    text-align: center;
}

.legal-footer p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.fine-print {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.fine-print h3 {
    font-size: 1.2rem;
    color: #000000 !important;
    font-weight: bold !important;
    margin-bottom: 15px;
    text-align: center;
    -webkit-text-fill-color: #000000 !important;
}

.fine-print p {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Links */
.legal-document a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-document a:hover {
    color: #5a4fcf;
    text-decoration: underline;
}

/* Table of Contents Styling */
.legal-toc {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
}

.legal-toc h3 {
    color: #000000 !important;
    font-size: 1.3rem;
    font-weight: bold !important;
    margin-bottom: 20px;
    text-align: center;
    -webkit-text-fill-color: #000000 !important;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 10px;
}

.legal-toc a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.legal-toc a:hover {
    background: rgba(108, 92, 231, 0.1);
    color: #5a4fcf;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 80px 0 40px 0;
    }
    
    .legal-title-block h1 {
        font-size: 2.5rem;
    }
    
    .legal-nav {
        gap: 15px;
    }
    
    .legal-nav a {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .legal-document {
        padding: 30px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-subsection {
        padding: 20px 15px;
    }
    
    .legal-subsection h3 {
        font-size: 1.2rem;
    }
    
    .info-item strong {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .legal-header {
        padding: 60px 0 30px 0;
    }
    
    .legal-title-block h1 {
        font-size: 2rem;
    }
    
    .legal-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-document {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .legal-section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .dmca-agent-info,
    .company-info,
    .contact-info {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .legal-header {
        background: none !important;
        padding: 20px 0;
    }
    
    .legal-nav {
        display: none;
    }
    
    .legal-document {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .legal-section h2 {
        color: #000000 !important;
        border-bottom: 1px solid #000;
    }
    
    .legal-section h2::before {
        background: #000;
    }
    
    .legal-subsection {
        background: none;
        border-left: 2px solid #000;
    }
    
    .legal-list li::before {
        color: #000;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Accessibility */
.legal-document *:focus {
    outline: 2px solid #6c5ce7;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
.legal-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }

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