/* Legal & utility pages (privacy, terms, refunds, thanks, 404) — layered on site.css */

html[lang="en"] [data-lang="ar"],
html[lang="ar"] [data-lang="en"] { display: none !important; }

body.legal-page { background: var(--beige); color: var(--ink); }
.legal-page .nav { position: sticky; background: var(--red); }
.legal-page .nav-actions { margin-inline-start: auto; }

.legal-wrap {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
}
.legal-kicker { font-weight: 700; color: var(--red); margin-bottom: .6rem; }
.legal-kicker a { color: inherit; text-decoration: none; }
.legal-kicker a:hover { text-decoration: underline; }
.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
}
html[lang="ar"] .legal-wrap h1 { font-family: var(--font-ar); font-weight: 800; }
.legal-meta { color: var(--ink-soft); font-size: .92rem; margin: .8rem 0 1.4rem; }
.legal-intro {
  font-size: var(--lead);
  line-height: 1.6;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.legal-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red-deep);
  margin: 2.2rem 0 .6rem;
}
.legal-wrap p, .legal-wrap li { line-height: 1.7; max-width: 68ch; }
.legal-wrap ul { list-style: disc; padding-inline-start: 1.3rem; margin-bottom: 1rem; }
.legal-wrap li { margin-bottom: .45rem; }
.legal-wrap li::marker { color: var(--red); }
.legal-wrap a { color: var(--red); font-weight: 600; }
.legal-other {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(28,28,28,.12);
}
.legal-other a {
  display: inline-block;
  background: var(--white);
  border-radius: 999px;
  padding: .55rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.legal-other a:hover { color: var(--red); }

.footer-slim { padding-block: 1.6rem; }
.footer-slim .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.footer-slim a { color: var(--gold); }

/* centred message pages: thanks, 404 */
.message-wrap {
  min-height: calc(100svh - 160px);
  display: grid; place-items: center; text-align: center;
  padding: 3rem var(--pad-x);
}
.message-wrap img { width: min(220px, 50vw); margin: 0 auto 1.4rem; }
.message-wrap h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); }
html[lang="ar"] .message-wrap h1 { font-family: var(--font-ar); font-weight: 800; }
.message-wrap p { color: var(--ink-soft); margin: .8rem auto 1.6rem; max-width: 40ch; }
