/* ==========================================================================
   Legal (measured on live nafas.com/ae-en/legal, the Framer version; same layout as pages/terms)
   Breakpoints: desktop >= 1440, tablet 810-1439.98, phone <= 809.98.
   - Frame: column, centred, gap 80, padding 120/50/150, white, overflow hidden.
   - Title block: column, centred, gap 20; title and the two subtitle paragraphs (20px apart) do not wrap (white-space: pre), so on phone the
     subtitle is wider than the column and is clipped at both sides, as live.
   - Title 52 / 42 / 32px SF Pro Display Medium, line height 1.1, black. Subtitle and body 21px (tablet and
     phone 16px) SF Pro Display Regular, line height 1.3.
   - Body: Framer rich text, every block after the first has a 20px top margin; list items indent 2ch with a "•".
   ========================================================================== */

/* ---------- base (desktop >= 1440) ---------- */
.nf-legal {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 80px; padding: 120px 50px 150px; background-color: var(--nf-white); overflow: hidden;
}
.nf-legal__head {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 20px; overflow: hidden;
}
.nf-legal__title-box, .nf-legal__sub-box {
  position: relative; flex: 0 0 auto; width: auto; display: flex; flex-direction: column; justify-content: flex-start;
}
.nf-legal__title {
  white-space: pre; font-family: var(--nf-font-medium); font-weight: 500; font-size: 52px; line-height: 1.1;
  letter-spacing: normal; color: var(--nf-black); text-align: center;
}
.nf-legal__sub {
  white-space: pre; font-family: var(--nf-font-regular); font-weight: 400; font-size: 21px; line-height: 1.3;
  letter-spacing: 0; color: var(--nf-black); text-align: center;
}
.nf-legal__sub + .nf-legal__sub { margin-top: 20px; }

.nf-legal__body {
  position: relative; flex: 0 0 auto; width: 100%; word-break: break-word; overflow-wrap: break-word;
}
.nf-legal__p, .nf-legal__ul {
  margin: 20px 0 0; padding: 0; font-family: var(--nf-font-regular); font-weight: 400; font-size: 21px; line-height: 1.3;
  letter-spacing: 0; color: var(--nf-black); text-align: left; white-space: pre-wrap;
}
.nf-legal__body > :first-child, .nf-legal__li > .nf-legal__p { margin-top: 0; }
.nf-legal__ul { position: relative; list-style: none; }
.nf-legal__li { position: relative; padding-inline-start: 2ch; list-style: none; }
.nf-legal__li::before { content: "•"; position: absolute; inset-inline-start: 0; }

/* ---------- tablet 810-1439.98 ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-legal__title { font-size: 42px; }
  .nf-legal__sub, .nf-legal__p, .nf-legal__ul { font-size: 16px; }
}

/* ---------- phone <= 809.98 ---------- */
@media (max-width: 809.98px) {
  .nf-legal__title { font-size: 32px; }
  .nf-legal__sub, .nf-legal__p, .nf-legal__ul { font-size: 16px; }
}

/* Subtitle wraps when it does not fit (QC 2026-10-28): live's white-space: pre clipped "Please read these terms ..." on
   phones. Same line breaks as live wherever the line fits. */
.nf-legal__sub { white-space: normal; }
.nf-legal__sub-box { max-width: 100%; }
