/* Legal Pages Specific Styles */

.legal-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: var(--dark-bg);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

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

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.legal-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    position: relative;
}

.legal-section li::marker {
    color: var(--primary-color);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--primary-color);
}

/* Links in legal content */
.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Table of Contents (if needed) */
.toc {
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 100px;
}

.toc h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: var(--dark-bg);
    color: var(--primary-color);
}

/* Highlight important sections */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.highlight-box::before {
    content: '⚠️';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--dark-secondary);
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

.highlight-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .legal-page {
        padding: 0;
    }
    
    .legal-section {
        background: white;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .legal-section h2,
    .legal-section h3,
    .legal-section p,
    .legal-section li {
        color: black;
    }
}

/* Accessibility improvements */
.legal-section:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scroll behavior for internal links */
html {
    scroll-behavior: smooth;
}

/* Section numbering */
.legal-section {
    counter-increment: section;
}

.legal-section h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    margin-top: 0.5rem;
}