/* Shared styles for legal pages (privacy.html, terms.html) */

/* Legal page specific body styles */
body.legal-page {
    justify-content: flex-start;
    padding: 2rem 1rem;
}

/* Main container with glass morphism effect */
.legal-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

/* Header section */
.legal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding-bottom: 1.5rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-purple);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-orange);
}

/* Content area */
.legal-content {
    text-align: left;
    line-height: 1.8;
}

/* Unified H2 styling with accent bar */
.legal-content h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 1rem 0 0.4rem 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-content p + ul {
    margin-top: -0.75rem;
}

/* Default list styling with subtle background */
.legal-content ul {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    background: rgba(249, 250, 251, 0.3);
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.legal-content li strong {
    color: var(--text-primary);
}

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

.legal-content em {
    color: var(--accent-orange);
    font-style: italic;
}

/* Plain English explanatory note */
.plain-english-note {
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    font-style: normal;
    opacity: 0.8;
}

/* Last updated timestamp */
.last-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Footer section */
.legal-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.legal-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    margin: 0 1rem;
}

.legal-footer a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Content link styling */
.legal-content a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.4rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
}