/**
 * Legal Document Pages - Shared CSS
 * Optimized styles for all legal document pages (Privacy Policy, Terms of Service, etc.)
 * Extracted from privacy-policy/index.html and optimized for reuse
 */

/* ==========================================================================
   Base Reset for Legal Pages
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    background: var(--neural-black, #000);
    color: var(--neural-white, #fff);
    font-family: var(--font-primary, 'Open Sans', system-ui, -apple-system, sans-serif);
}

/* ==========================================================================
   Legal Container - Main wrapper for legal pages
   ========================================================================== */

.legal-container {
    background: var(--neural-black, #000);
    color: var(--neural-white, #fff);
    min-height: 100vh;
    padding-top: calc(var(--header-height, 75px) + 3rem);
    padding-bottom: 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-contact-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ==========================================================================
   Legal Page Header
   ========================================================================== */

.legal-page-header {
    background: var(--neural-black);
    padding: var(--header-height) 0 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-page-header__content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page-header__title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-extra-light);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--neural-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.legal-page-header__subtitle {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.legal-page-header__meta {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================================================
   Legal Content Section
   ========================================================================== */

.neural-section {
    background: var(--neural-black);
    position: relative;
    overflow: hidden;
}

/* Subtle background animation */
.neural-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(60, 19, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 119, 6, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(116, 238, 221, 0.01) 0%, transparent 50%);
    animation: subtleFloat 30s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(0.5deg); }
}

.neural-content-wrapper {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* ==========================================================================
   Legal Document Typography
   ========================================================================== */

.neural-h1 {
    color: var(--neural-white);
    font-family: var(--font-primary, 'Open Sans', system-ui, -apple-system, sans-serif);
    font-weight: 200;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.neural-h2 {
    color: var(--neural-white);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
    position: relative;
}

.neural-h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--neural-purple) 0%, var(--neural-orange) 100%);
    border-radius: 1px;
}

.neural-h3 {
    color: var(--neural-white);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin: 2rem 0 0.75rem 0;
    line-height: 1.4;
}

/* Legal document paragraphs */
.legal-content p {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary, 'Open Sans', system-ui, -apple-system, sans-serif);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Legal document lists */
.legal-content ul,
.legal-content ol {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary, 'Open Sans', system-ui, -apple-system, sans-serif);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Legal document links */
.legal-content a {
    color: var(--neural-orange, #d97706);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--neural-purple, #7c3aed);
    text-decoration: underline;
}

/* Large body text */
.neural-body-lg {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* Legal document lists */
.neural-section ul, 
.neural-section ol {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.neural-section li {
    margin-bottom: 0.5rem;
}

/* Legal document links */
.neural-section a {
    color: var(--neural-soft-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.neural-section a:hover {
    color: var(--neural-orange);
}

/* Legal document strong text */
.neural-section strong {
    color: var(--neural-white);
    font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   Mobile Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .legal-page-header {
        padding: var(--header-height) 0 1rem 0;
    }
    
    .legal-page-header__title {
        font-size: 1.5rem;
    }
    
    .legal-page-header__subtitle {
        font-size: 0.9rem;
    }

    .neural-h2 {
        margin: 2rem 0 0.75rem 0;
    }

    .neural-h3 {
        margin: 1.5rem 0 0.5rem 0;
    }
}

/* ==========================================================================
   Accessibility - Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .subtleFloat,
    .fadeInUp {
        animation: none;
    }
    
    .neural-content-wrapper {
        opacity: 1;
        transform: translateY(0);
    }
}