/* ==========================================================================
   Privacy Policy page
   Desktop frame: hero 136→420 (h284), main 420→5005 (h4585)
   Mobile frame:  hero 160→301 (h141), nav 301→861 (h560), content 861→6209 (h5348)
   ========================================================================== */

.page-privacy { --pp-rule: #d9d1c5; --pp-nav-muted: #59534f; }

/* Hero ------------------------------------------------------------------- */
.pp-hero {
  background: var(--sand); border-bottom: 1px solid var(--pp-rule);
  padding: 80px var(--gutter) 79px; display: flex; flex-direction: column; gap: 16px; /* 79 + 1px border = 80 */
  min-height: 284px;
}
.pp-hero__crumb { font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 22px; letter-spacing: 1.5px; color: var(--orange); white-space: nowrap; }
.pp-hero__row { display: flex; justify-content: space-between; align-items: center; }
.pp-hero__title { font-family: var(--f-head); font-weight: 700; font-size: 64px; line-height: 86px; color: var(--ink); white-space: nowrap; }

/* Two-column layout ------------------------------------------------------ */
.pp-layout { display: flex; align-items: flex-start; gap: 48px; padding: 48px var(--gutter); background: var(--bg); }

/* 0-height rule: 1px line that takes no layout space (Figma LINE h=0) */
.pp-line { display: block; flex: 0 0 auto; width: 100%; height: 1px; margin-top: -1px; background: var(--pp-rule); }

/* Document navigation ---------------------------------------------------- */
.pp-nav {
  flex: 0 0 260px; width: 260px; position: sticky; top: 24px; align-self: flex-start;
  padding: 24px 16px 24px 0; display: flex; flex-direction: column; gap: 12px; background: var(--bg);
}
.pp-nav__label { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; letter-spacing: 1px; color: var(--pp-nav-muted); white-space: nowrap; }
.pp-nav__list { display: flex; flex-direction: column; gap: 6px; }
.pp-nav__item {
  display: flex; align-items: center; gap: 8px; height: 35px; padding: 8px 12px; border-radius: 4px;
  transition: background-color .15s ease;
}
.pp-nav__item:hover { background: rgba(245, 229, 211, .55); }
.pp-nav__item.is-active { background: var(--sand); }
.pp-nav__num { flex: 0 0 auto; font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; color: var(--pp-nav-muted); }
.pp-nav__item.is-active .pp-nav__num { color: var(--orange); }
.pp-nav__text { flex: 1 1 auto; min-width: 0; font-family: var(--f-body); font-size: 13px; line-height: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-nav__item.is-active .pp-nav__text { font-weight: 600; }

/* Policy content --------------------------------------------------------- */
.pp-content { flex: 0 1 840px; width: 840px; max-width: 100%; min-width: 0; padding: 24px 0 48px; display: flex; flex-direction: column; gap: 48px; }

.pp-section { display: flex; flex-direction: column; gap: 20px; }
.pp-section__head { display: flex; align-items: center; gap: 16px; }
.pp-section__num { flex: 0 0 auto; font-family: var(--f-head); font-weight: 700; font-size: 32px; line-height: 43px; color: var(--orange); }
.pp-section__title { font-family: var(--f-head); font-weight: 700; font-size: 28px; line-height: 38px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }

.pp-p { font-family: var(--f-body); font-size: 16px; line-height: 28px; color: var(--ink); }
.pp-p--contact { line-height: 24px; }

.pp-clauses { display: flex; flex-direction: column; gap: 16px; }
.pp-clause { font-family: var(--f-body); font-size: 16px; line-height: 26px; color: var(--ink); }
.pp-clause__num { font-weight: 700; }
.pp-mb { font-weight: inherit; }

.pp-bullets { display: flex; flex-direction: column; gap: 8px; }
.pp-bullets li { display: flex; align-items: flex-start; gap: 12px; }
.pp-bullets__dot { flex: 0 0 auto; font-family: var(--f-body); font-size: 18px; line-height: 28px; color: var(--orange); }
.pp-bullets__text { flex: 1 1 auto; min-width: 0; font-family: var(--f-body); font-size: 16px; line-height: 26px; color: var(--ink); }

.pp-cta { align-self: flex-start; font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--orange); white-space: nowrap; }
.pp-cta--sm { font-size: 16px; line-height: 22px; }
.pp-cta:hover { text-decoration: underline; }

/* 08 — same colour as page but inset by 24px (Figma boxed frame) */
.pp-section--boxed { padding: 24px; border-radius: 8px; background: var(--bg); }

/* 12 — light-blue box */
.pp-section--kids { padding: 24px; border-radius: 8px; background: #eaf4fc; }
.pp-callout { display: flex; flex-direction: column; gap: 16px; }
.pp-badge { align-self: flex-start; display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; white-space: nowrap; }

/* 14 — contact */
.pp-section--contact .pp-section__head { gap: 12px; }
.pp-section--contact .pp-section__title { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
  .page-privacy { --pp-rule: var(--line); --pp-nav-muted: var(--muted); }

  .pp-hero { padding: 32px var(--mobile-gutter) 31px; gap: 8px; min-height: 141px; border-bottom-color: var(--line); }
  .pp-hero__crumb { font-size: 11px; line-height: 15px; }
  .pp-hero__title { font-size: 40px; line-height: 54px; white-space: normal; }

  .pp-layout { display: block; padding: 0; }

  .pp-nav { position: static; width: auto; padding: 24px var(--mobile-gutter); gap: 16px; }
  .pp-nav__label { font-size: 12px; line-height: 16px; margin-bottom: -8px; } /* label→rule 8px, rule→list 16px */
  .pp-nav__list { gap: 4px; }
  .pp-nav__item { height: 30px; padding: 6px 10px; }
  .pp-nav__num { font-size: 13px; line-height: 18px; }

  .pp-content { width: auto; max-width: none; padding: 0 var(--mobile-gutter); gap: 32px; }

  .pp-section { gap: 16px; }
  .pp-section__head { gap: 12px; }
  .pp-section__num { font-size: 28px; line-height: 38px; }
  .pp-section__title { font-size: 22px; line-height: 30px; flex: 1 1 auto; min-width: 0; }

  /* Figma renders 15px × 1.5 as 23px per line (230 = 10 lines) — match it exactly */
  .pp-p, .pp-p--contact, .pp-clause, .pp-bullets__text { font-size: 15px; line-height: 23px; }
  .pp-clauses { gap: 12px; }
  .pp-mb { font-weight: 700; }

  .pp-bullets { gap: 10px; }
  .pp-bullets li { gap: 8px; }
  .pp-bullets__dot { font-size: 16px; line-height: 1.5; }

  .pp-cta { font-size: 16px; line-height: 22px; }
  .pp-cta--sm { font-size: 14px; line-height: 19px; margin-top: 4px; } /* spec: 16px above CTA (clause gap is 12) */

  .pp-section--boxed { padding: 0; border-radius: 0; background: none; }

  .pp-section--kids { padding: 0; border-radius: 0; background: none; }
  .pp-callout { gap: 12px; padding: 16px; border-radius: 8px; background: var(--sky); }
  .pp-badge { padding: 2px 8px; font-size: 11px; line-height: 15px; }

  .pp-section--contact .pp-section__head { gap: 12px; }
  .pp-section--contact .pp-section__title { text-transform: uppercase; letter-spacing: .5px; }
}
