/*
 * legal.css — layout for the public legal and help pages: Privacy Policy, Terms of Service,
 * Service providers, Delete your account, Support (ui/html/pages/policies/*.html, rendered by
 * Controller\Policies). Each of those templates links this file itself, the way home.html links
 * landing.css, so no other page is affected.
 *
 * Deliberately plain and readable (long text on a phone): one column, no fixed widths, tables that
 * scroll inside their own box instead of widening the page. Colours follow the site palette in
 * page-wrapper.html. The look belongs to deadwood-designer, who may restyle freely; keep the class
 * names or update the five templates with them.
 */
.legal { padding: 40px 16px 72px; }
.legal-wrap { max-width: 760px; margin: 0 auto; color: #faecd8; line-height: 1.65; font-size: 1rem; }
.legal-wrap h1 { font-family: 'Rye', Georgia, serif; font-size: 2rem; color: #f0bf7c; margin: 0 0 8px; line-height: 1.2; }
.legal-wrap h2 { font-size: 1.3rem; font-weight: 700; color: #f0bf7c; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid #9f715a65; }
.legal-wrap h3 { font-size: 1.05rem; font-weight: 700; color: #faecd8; margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap ul, .legal-wrap ol { margin: 0 0 14px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: #f0bf7c; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-wrap a:hover { color: #ffd9a3; }
.legal-meta { color: #d2bdaa; font-size: 0.9rem; margin-bottom: 24px; }
.legal-lead { font-size: 1.05rem; color: #faecd8; }
.legal-toc { background: #221a1c; border: 1px solid #3d2c2c; border-radius: 6px; padding: 16px 20px; margin: 24px 0; }
.legal-toc p { margin: 0 0 8px; font-weight: 700; color: #d2bdaa; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-box { background: #221a1c; border: 1px solid #3d2c2c; border-left: 4px solid #f0bf7c; border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.legal-box > :last-child { margin-bottom: 0; }
.legal-box.warn { border-left-color: #c0392b; }
.legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border: 1px solid #3d2c2c; border-radius: 6px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; color: #faecd8; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #3d2c2c; }
.legal-table th { background: #221a1c; color: #f0bf7c; font-weight: 700; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table.wide table { min-width: 560px; }
.legal-caps { text-transform: none; font-weight: 600; }
@media (max-width: 480px) {
    .legal { padding-top: 28px; }
    .legal-wrap h1 { font-size: 1.6rem; }
    .legal-wrap h2 { font-size: 1.15rem; }
}
