/* --- LEGAL PAGES (privacy.php, terms.php) --- */

/* Navbar se spacing */
main .section:first-child { padding-top: 180px; }

.tag { display: block; text-align: center; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 15px; }

/* Prose, so the column is capped for reading rather than filling 1200px. */
.legal-wrap { max-width: 820px; margin: 0 auto; text-align: left; }
.legal-updated { color: var(--text-muted); font-size: 0.88rem; text-align: center; margin-bottom: 45px; }
.legal-updated strong { color: #fff; }

.legal-intro { background: var(--glass-bg); border: 1px solid var(--glass-border); border-left: 3px solid var(--primary); border-radius: 18px; padding: 26px 30px; margin-bottom: 45px; }
.legal-intro p { color: var(--text-muted); line-height: 1.75; margin: 0; font-size: 1rem; }

.legal-toc { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 26px 30px; margin-bottom: 50px; }
.legal-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 16px; }
.legal-toc ol { columns: 2; column-gap: 40px; padding-left: 20px; margin: 0; }
.legal-toc li { color: var(--text-muted); margin-bottom: 9px; line-height: 1.5; break-inside: avoid; }
.legal-toc a { color: var(--text-muted); text-decoration: none; transition: color 0.25s; }
.legal-toc a:hover { color: var(--primary); }

.legal-section { margin-bottom: 42px; scroll-margin-top: 120px; }
.legal-section h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.4; }
.legal-section h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 24px 0 10px; }
.legal-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; font-size: 0.98rem; }
.legal-section ul { padding-left: 22px; margin: 0 0 15px; }
.legal-section li { color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; font-size: 0.98rem; }
.legal-section a { color: var(--primary); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { color: #fff; font-weight: 600; }

/* Who we hand data to — a table reads faster than five paragraphs. */
.legal-table-wrap { overflow-x: auto; margin: 18px 0 20px; border: 1px solid var(--glass-border); border-radius: 16px; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 18px; font-size: 0.92rem; line-height: 1.6; border-bottom: 1px solid var(--glass-border); }
.legal-table th { color: #fff; font-weight: 700; background: rgba(255,255,255,0.03); }
.legal-table td { color: var(--text-muted); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }

.legal-contact { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; margin-top: 50px; }
.legal-contact h2 { font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.legal-contact p { color: var(--text-muted); line-height: 1.9; margin: 0; font-size: 0.98rem; }
.legal-contact a { color: var(--primary); text-decoration: none; }

@media (max-width: 768px) {
    main .section:first-child { padding-top: 130px; }
    .section-title { margin-bottom: 30px !important; }
    .legal-toc ol { columns: 1; }
    .legal-toc, .legal-intro, .legal-contact { padding: 22px 20px; }
    .legal-section h2 { font-size: 1.15rem; }
}
