/* ============================================================
   PAGES — the frame for all vertically scrolling pages
   (Home, About, Coaching, Gym) and simple text pages.
   ============================================================ */

/* Every page's column: centred, the same width on Home, About, Coaching and Gym */
.page-inner { max-width: 800px; margin: 0 auto; }

/* Phone: the floating header, then 20px: the same as the side gutter and the gap between cards */
.page { padding: calc(var(--header-h) + 20px) max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .page { margin-left: var(--rail); padding: 96px clamp(40px, 6vw, 104px) 120px; }
  /* pages that open with a hero (Home, Coaching, Gym): the hero's top lines up with the top of the floating rail */
  .page:has(> .page-inner > .hero:first-child) { padding-top: var(--float); }
}

.page-title {
  margin: 0; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-title);
  text-transform: uppercase; font-size: var(--fs-display); line-height: 1;
}

/* Simple text pages (Privacy, Terms, Not found): one centred column */
.simple { max-width: 760px; margin: 0 auto; }
.simple > .page-title + p { margin-top: 28px; }
.simple h2 { margin: 56px 0 16px; font-family: var(--display); font-weight: var(--bold); font-stretch: var(--stretch-section); text-transform: uppercase; font-size: var(--fs-heading); }
.simple p { font-size: var(--fs-body); line-height: 1.7; margin: 0 0 1em; }
.simple a { color: var(--accent-ink); }


/* Privacy and Terms: the date on a meta line above the title, with a dark rule under it, as on the first page drafts
   (the old .page-meta). The title sits a card gap below the rule. */
.simple .legal-meta { margin: 0 0 40px; min-height: 48px; padding-bottom: 4px; border-bottom: 1px solid var(--dark); font-size: var(--fs-meta); line-height: 1.4; }
/* a long flat page: paragraphs a touch closer, sections a little tighter than the general .simple spacing */
.legal p { margin-bottom: .7em; line-height: 1.65; }
.legal h2 { margin: 40px 0 12px; }
