/* Legal Pages Specific Styles */

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.legal-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.legal-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legal Content Layout */
.legal-content {
    padding: 80px 0;
    background: #fff;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: #f8faff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.legal-toc h3 {
    margin-bottom: 1.5rem;
    color: #000;
    font-size: 1.1rem;
}

.legal-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-toc li {
    margin-bottom: 0.5rem;
}

.legal-toc a {
    display: block;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.legal-toc a:hover {
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 1.5rem;
}

/* Main Legal Content */
.legal-main {
    max-width: 800px;
}

.legal-intro {
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border-left: 4px solid #667eea;
}

.legal-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

/* Ensure proper text contrast for all paragraphs */
.legal-section p {
    color: #000;
    line-height: 1.6;
}

.legal-section h2 {
    color: #000;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.legal-section h2 i {
    color: #667eea;
    font-size: 1.2rem;
}

.legal-subsection {
    margin: 2rem 0;
}

.legal-subsection h3 {
    color: #444;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.legal-subsection h3 i {
    color: #667eea;
    font-size: 1rem;
}

/* Legal Lists */
.legal-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    line-height: 1.6;
    color: #000;
}

.legal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Info Boxes */
.info-box, .warning-box, .disclaimer-box, .contact-box, .law-box, .privacy-link-box, .thank-you-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #e8f4fd;
    border-left-color: #2196F3;
}

.warning-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.disclaimer-box {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.contact-box {
    background: #d4edda;
    border-left-color: #28a745;
}

.law-box {
    background: #e2e3e5;
    border-left-color: #6c757d;
}

.privacy-link-box {
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    border-left-color: #667eea;
}

.thank-you-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left-color: white;
    text-align: center;
}

.thank-you-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.thank-you-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Business Requirements Cards */
.business-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-5px);
}

.requirement-card h4 {
    color: #000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.requirement-card h4 i {
    color: #667eea;
}

.requirement-card p {
    margin: 0;
    color: #000;
    line-height: 1.6;
}

/* Subscription Info */
.subscription-info h4 {
    color: #444;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.subscription-info h4 i {
    color: #667eea;
}

/* IP Sections */
.ip-section {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

.ip-section h4 {
    color: #000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ip-section h4 i {
    color: #667eea;
}

/* Logo Link Styling */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

/* Links */
.legal-main a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-main a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-toc {
        position: static;
        order: -1;
    }
    
    .legal-toc ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .legal-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .business-requirements {
        grid-template-columns: 1fr;
    }
    
    .legal-toc ul {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 100px 0 60px;
    }
    
    .legal-hero-content h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 60px 0;
    }
    
    .legal-intro {
        padding: 1.5rem;
    }
    
    .requirement-card {
        padding: 1rem;
    }
}