/* ==========================================================================
   KAN-26 — Content pages (pages/show: privacy, terms, refunds, delivery,
   cookies and any page the admin adds). The base sizes live in
   resources/css/app.css (.np-page-*); this only makes long policy text read
   well: real bullets (the template's style.css strips them from every list),
   a rule between sections, room for Nastaliq in Urdu, and phone numbers and
   emails that stay left-to-right inside Urdu sentences.
   ========================================================================== */

.np-page-body { overflow-wrap: break-word; }

/* Each section starts under a light rule, so a long page scans by its headings. */
.np-page-body h2 {
  margin: 34px 0 12px; padding-top: 26px;
  border-top: 1px solid rgba(127, 127, 127, .22);
  line-height: 1.3; scroll-margin-top: 90px;
}
.np-page-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.np-page-body h3 { margin: 24px 0 8px; line-height: 1.35; }

.np-page-body ul { list-style: disc; }
.np-page-body ol { list-style: decimal; }
.np-page-body li { list-style: inherit; padding-inline-start: 2px; }
.np-page-body li::marker { color: var(--oa-lime-ink, #4F7A12); }
.np-page-body li > p { margin: 0; }
.np-page-body li strong { font-weight: 700; }

/* A long email or link wraps instead of pushing the page sideways on a phone. */
.np-page-body a { overflow-wrap: anywhere; }
.np-page-body a[href^="tel:"],
.np-page-body a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* Urdu: Nastaliq is tall and needs more leading than Latin text. */
html[dir="rtl"] .np-page-body { line-height: 2.25; }
html[dir="rtl"] .np-page-body :is(h2, h3) { line-height: 1.9; }
html[dir="rtl"] .np-page-body li { margin-bottom: 10px; }

@media (max-width: 767px) {
  .np-page-body { font-size: 15px; line-height: 1.75; }
  .np-page-body h2 { font-size: 21px; margin-top: 28px; padding-top: 22px; }
  .np-page-body h3 { font-size: 17px; }
  html[dir="rtl"] .np-page-body { line-height: 2.2; }
}
