/* =============================================================
   legal.css — NEWANDU Terms of Service & Privacy Policy Styling
   ============================================================= */

.terms-container,
.privacy-container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card, rgba(17, 24, 39, 0.85));
    border: 1px solid var(--border, rgba(51, 65, 85, 0.7));
    border-radius: 1.25rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.terms-header,
.privacy-header {
    border-bottom: 1px solid var(--border, rgba(51, 65, 85, 0.7));
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.terms-header h1,
.privacy-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.terms-date,
.privacy-date {
    color: var(--accent, #3b82f6);
    font-size: 0.85rem;
    font-weight: 600;
}

.terms-section,
.privacy-section {
    margin-bottom: 2rem;
}

.terms-section h2,
.privacy-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-section p,
.privacy-section p {
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.terms-actions,
.privacy-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, rgba(51, 65, 85, 0.7));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .terms-container,
    .privacy-container {
        padding: 1.75rem 1.25rem;
    }
    .terms-header h1,
    .privacy-header h1 {
        font-size: 1.4rem;
    }
}
