/* Standalone legal pages (terms, privacy policy, support policy).
 *
 * A PLAIN DOCUMENT, on purpose. Every Saudi legal page in the survey behind
 * this rewrite is heading-then-paragraph with no cards, no boxes and no
 * accordions, and a reader scanning for one clause is slowed by a border
 * around every article. `.legal-body section` used to carry a border, a
 * radius, a pad and a white fill, which made twenty-two articles read as
 * twenty-two separate objects instead of one contract.
 *
 * The same rules serve the popup. `terms-modal.css` constrains the height and
 * adds scrolling and nothing else, so the text a person ticks a box against is
 * typographically identical to the page it came from.
 */
.legal-page { max-width: 820px; margin: 0 auto; padding: var(--pad-page-y, 32px) var(--pad-page-x, 20px); }
.legal-hero { margin-bottom: var(--space-6, 24px); }
.legal-hero h1 { margin: 8px 0 6px; font-size: 1.6rem; font-weight: 800; }
.legal-lead { color: var(--fg-2); font-size: 0.95rem; line-height: 1.6; }
.legal-draft-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(232,167,45,0.12); border: 1px solid rgba(232,167,45,0.35); color: var(--gold-700); font-size: 0.78rem; font-weight: 700; }

/* Version and effective date. One line, small, directly under the title: the
 * single thing most of the surveyed pages were missing, and the thing an
 * acceptance record points at. */
.legal-updated { color: var(--fg-3, var(--fg-2)); font-size: 0.8rem; margin-top: 6px; }

.legal-body { display: grid; gap: var(--space-6, 24px); }
.legal-body section { display: grid; gap: var(--space-2, 8px); }
.legal-body h2 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.legal-body p, .legal-body li { color: var(--fg-1); font-size: 0.92rem; line-height: 1.75; margin: 0; }
.legal-body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }

/* A part heading (أحكام عامة / قسم العميل / قسم مزوّد الخدمة). The terms are
 * one contract in three parts, and the popup renders a SUBSET of them, so the
 * reader has to be told which part they are in. A rule above rather than a box
 * around: it separates without making the part look like a document of its
 * own, which is the whole point of not splitting the contract in two. */
.legal-part { display: grid; gap: 4px; padding-top: var(--space-5, 20px); border-top: 2px solid var(--color-border); }
.legal-part:first-child { padding-top: 0; border-top: 0; }
.legal-part h2 { font-size: 1.18rem; font-weight: 800; margin: 0; }
.legal-part p { color: var(--fg-2); font-size: 0.86rem; line-height: 1.6; margin: 0; }

.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); text-decoration: none; font-size: 0.9rem; margin-bottom: 14px; }
