/* Extra pages (user, 2026-10-23: "V3 look, same text"): the legal pages (Privacy Policy, Terms & Conditions,
   Disclaimer) and the notice pages (Thank you, 404). Loaded AFTER home-3.css; body classes "home-3 page-legal" /
   "home-3 page-notice". Hero = the V3 inner-page hero (home-3.css). Colours, sizes = existing tokens only; one content
   width (panel + contents box fill .wrap; only the TEXT keeps a reading width). Elementor: Container + Heading + Text
   Editor + Icon List; the contents fold-out = Accordion / Toggle (native). */

/* Hero with no tagline (legal pages, Thank you): the rule sits closer to the buttons than with a tagline. */
.page-legal .hero1--page .hero-rule{margin-bottom:30px}

/* ---------- NOTICE PAGES (Thank you, 404) ---------- */
.page-notice .notice{background:var(--sky-50)}
.page-notice .notice-body{max-width:760px;margin:0 auto;text-align:center}
.page-notice .notice-body p{margin:0 0 1rem}
.page-notice .notice-body p:last-child{margin-bottom:0}
.page-notice .notice-body [hidden]{display:none}
.page-notice .notice-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;list-style:none;margin:0;padding:0}
.page-notice .notice-body div[data-ty]+div,.page-notice .notice-body nav+p{margin-top:28px}
.page-notice .notice-body div[data-ty="direct"] .notice-links{margin-top:6px}
@media (max-width:767px){ .page-notice .notice-links{flex-direction:column;align-items:center} .page-notice .notice-links .btn{width:min(100%,250px);justify-content:center} }   /* phone = 1 column (user, 2026-10-23; was <= 420 only) */

/* ---------- LEGAL PAGES ---------- */
.page-legal .lg-sec{scroll-margin-top:150px}
/* contents box (white, soft-blue line) */
.page-legal .lg-toc{margin:0 0 24px;padding:20px 22px;background:#fff;border:1px solid #D1ECF7;border-radius:22px;
  box-shadow:var(--shadow-sm)}
.page-legal .lg-toc ol{margin:0;padding-left:26px;display:grid;gap:2px 40px}
.page-legal .lg-toc--plain ol{list-style:none;padding-left:0}
.page-legal .lg-toc a{display:inline-flex;align-items:center;min-height:44px;color:var(--dolphin-deep);
  text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){ .page-legal .lg-toc a:hover{color:var(--navy)} }
/* "On this page": a fold-out on phones (closed by js/legal.js), always open from 768 */
.page-legal .lg-toc-sum{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;
  list-style:none;cursor:pointer}
.page-legal .lg-toc-sum::-webkit-details-marker{display:none}
.page-legal .lg-toc-label{font-family:var(--hf);font-size:var(--fs-h3);color:var(--navy);line-height:1.2}
.page-legal .lg-toc-sum::after{content:"";flex:0 0 auto;width:10px;height:10px;margin:0 6px 4px 0;
  border-right:2.4px solid var(--dolphin);border-bottom:2.4px solid var(--dolphin);transform:rotate(45deg);
  transition:transform .18s}
.page-legal .lg-toc-fold[open]>.lg-toc-sum::after{transform:rotate(-135deg);margin-bottom:-4px}
.page-legal .lg-toc-fold[open]>.lg-toc-sum{margin-bottom:4px}
.page-legal .lg-toc-sum:focus-visible{outline:3px solid var(--dolphin);outline-offset:3px;border-radius:6px}
/* text panel (white card, soft-blue line); text keeps a reading width */
.page-legal .lg-panel{padding:28px 20px 32px;background:#fff;border:1px solid #D1ECF7;border-radius:22px;
  box-shadow:var(--shadow-sm)}
.page-legal .lg-prose{max-width:70ch;margin:0 auto}
.page-legal .lg-prose h2{font-size:var(--fs-h2);margin:44px 0 14px;scroll-margin-top:150px}
.page-legal .lg-prose h2:first-child{margin-top:0}
.page-legal .lg-prose p{margin:0 0 14px}
.page-legal .lg-prose p strong{color:var(--navy)}
.page-legal .lg-prose a{color:var(--dolphin-deep);text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){ .page-legal .lg-prose a:hover{color:var(--navy)} }
.page-legal .lg-prose p,.page-legal .lg-prose li{overflow-wrap:anywhere}   /* bare web addresses must wrap at 300px */
.page-legal .lg-list{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:12px}
.page-legal .lg-list li{position:relative;padding-left:26px}
.page-legal .lg-list li::before{content:"";position:absolute;left:2px;top:.62em;width:9px;height:9px;border-radius:50%;
  background:var(--dolphin)}
/* client placeholder: visible, marked (data-placeholder) */
.page-legal .lg-ph{display:inline;padding:2px 8px;background:var(--sky-100);border:1px dashed var(--muted);
  border-radius:8px;font-weight:700;color:var(--navy);overflow-wrap:anywhere}
@media (min-width:768px){
  .page-legal .lg-toc ol{grid-template-columns:1fr 1fr}
  .page-legal .lg-toc-sum{display:block;min-height:0;cursor:default;pointer-events:none}
  .page-legal .lg-toc-sum::after{display:none}
  .page-legal .lg-toc-fold[open]>.lg-toc-sum{margin-bottom:8px}
  .page-legal .lg-panel{padding:40px 40px 48px}
}
@media (min-width:1024px){
  .page-legal .lg-toc ol{grid-template-columns:repeat(3,1fr)}
  .page-legal .lg-panel{padding:56px 64px 64px}
}

/* ---------- HERO ICONS on the long titles (404, Terms & Conditions, Privacy Policy; checked 300-1920) ----------
   The title is wide enough to reach some doodles: the two small bubble groups are left out; from 560 to 1279 the book
   + hat take the phone place ABOVE the title (as on Our Programme 560-659; the hero gets the same extra space) and the
   ABC + pencil are left out 768-1279. Everything else = the home hero. */
.page-404 .deco-bubbles-l,.page-404 .deco-bubbles-r,.page-terms .deco-bubbles-l,.page-terms .deco-bubbles-r,
.page-privacy .deco-bubbles-l,.page-privacy .deco-bubbles-r{display:none}
@media (min-width:768px){   /* was 560-1279 (3 levels only, user 2026-10-23) */
  .home-3.page-404 .hero1,.home-3.page-terms .hero1,.home-3.page-privacy .hero1{--hero-pad:calc(3.6vh + 34px)}
  .page-404 .deco-book,.page-terms .deco-book,.page-privacy .deco-book{width:72px;top:12px}
  .page-404 .deco-hat,.page-terms .deco-hat,.page-privacy .deco-hat{width:69px;top:10px}
}
@media (min-width:768px){   /* was 768-1279 (3 levels only, user 2026-10-23) */
  .page-404 .deco-abc,.page-404 .deco-pencil,.page-terms .deco-abc,.page-terms .deco-pencil,
  .page-privacy .deco-abc,.page-privacy .deco-pencil{display:none}
}

/* Thank you (user, 2026-10-23): thank-you line = the hero tagline; sent / direct parts toggled by js/thank-you.js;
   two link cards = the home card look (.home-3 .cards > .card in home-3.css), as links. */
.page-thanks [data-ty][hidden]{display:none}
.page-thanks .ty-next a.card{display:block;color:inherit;text-decoration:none}
