/* ==========================================================================
   Room for Hebrew – text page template
   Used by: Terms & Conditions, Privacy Policy, Accessibility, Page not Found.
   Structure: a centred title followed by paragraphs of text, as wide as the
   rest of the site's content. Long texts (the legal pages) are split into
   sections, each with its own title (h2), and sometimes sub-sections (h3).
   ========================================================================== */

.text-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  /* A long word (like an email address) wraps instead of running past the
     edge on narrow screens or with increased letter spacing */
  overflow-wrap: break-word;
}

/* Page title: centred, in the same style as the big section titles on the
   home page */
.text-page h1 {
  font-size: var(--font-size-section-title);
  font-weight: 800;
  text-align: center;
}

/* Sections stack their title and text like the page does. The extra space
   above each one keeps sections visibly apart from each other. */
.text-page section {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding-block-start: var(--space-m);
}

/* Section and sub-section titles (e.g. "11. Cancellation and Refund Policy",
   "11.1. General"): the body font, bold; sections one step larger than
   sub-sections */
.text-page h2,
.text-page h3 {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}

.text-page h2 {
  font-size: var(--font-size-card-title);
}

/* On desktop the text is kept to a comfortable reading width */
@media (min-width: 64em) {
  .text-page {
    max-width: 50rem;
    margin-inline: auto;
  }
}

/* Numbered and bulleted lists, with a little space between items */
.text-page ol,
.text-page ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
  padding-inline-start: var(--space-xl);
}
