/* legal.css - Styles for Terms and Privacy Pages */

.legal-page {
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Header */
.legal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-background);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.back-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Main Content */
.legal-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
    width: 100%;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.effective-date {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 48px;
}

.effective-date strong {
    color: var(--text-primary);
}

.legal-section {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-section p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 20px;
}

.legal-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-section h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-list {
    margin: 16px 0 24px 24px;
    padding: 0;
}

.legal-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--text-primary);
}

.legal-note {
    font-size: 0.9375rem;
    color: var(--text-accent);
    font-style: italic;
}

/* Footer */
.legal-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    width: 100%;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 8px;
}

.footer-copyright {
    display: inline-block;
    margin-top: 12px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 32px 20px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .effective-date {
        margin-bottom: 32px;
        font-size: 0.9375rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }

    .legal-section h3 {
        font-size: 1.25rem;
        margin-top: 28px;
    }

    .legal-section h4 {
        font-size: 1.0625rem;
    }

    .legal-section p {
        font-size: 0.9375rem;
    }

    .legal-list {
        margin-left: 20px;
    }

    .legal-footer {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 20px 16px;
    }

    .legal-content {
        padding: 24px 16px;
    }

    .legal-title {
        font-size: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.375rem;
        margin-top: 32px;
    }

    .legal-section h3 {
        font-size: 1.125rem;
    }

    .legal-list {
        margin-left: 16px;
    }

    .legal-footer {
        padding: 20px 16px;
    }
}

/* Print Styles */
@media print {
    .legal-header,
    .legal-footer {
        display: none;
    }

    .legal-page {
        background: white;
        color: black;
    }

    .legal-content {
        max-width: 100%;
    }

    .legal-section {
        color: black;
    }

    .legal-section h2,
    .legal-section h3,
    .legal-section h4 {
        color: black;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .legal-header {
        border-bottom-width: 2px;
    }

    .back-link {
        text-decoration: underline;
    }

    .legal-link {
        font-weight: 500;
    }
}