/* ==========================================================================
   SIBNI v4 — pages.css: the quiet pages only (privacy, terms, 404, thank you).
   Loaded after site.css by lib/page.php and thank-you.php, so the home's
   render-blocking stylesheet does not carry them. Tokens come from site.css.
   ========================================================================== */
/* --------------------------------------------------------------------------
   Static pages: privacy, terms, 404, thank you
   -------------------------------------------------------------------------- */
/* v4 r8 (BREATHE.md 8): the legal pages breathe. A plain limestone head (no tile field, no eyebrow), the body at
   17px on a 68ch measure, sections set apart by space instead of rules, each privacy purpose as one definition
   list with sentence-case labels and a hairline between purposes, and the contents as a sticky plain list on
   laptops and a closed "On this page" row on phones. The legal wording itself is unchanged. */
.page-hero { padding-block: clamp(32px, 3vw + 16px, 64px) clamp(32px, 2vw + 20px, 48px); background: var(--stone-100); }
.page-hero h1 { font-size: var(--t-h1); font-weight: 620; letter-spacing: -.02em; line-height: 1.05; max-width: 18ch; }
.page-hero .lead { margin-top: 12px; font-size: var(--t-lead); max-width: 60ch; }
.page-hero__meta { margin-top: 12px; font-size: var(--t-small); color: var(--ink-3); }
.legal { padding-block: clamp(32px, 2vw + 24px, 56px) clamp(64px, 3vw + 40px, 88px); }
.legal__body { max-width: 860px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.legal__body > p, .legal__body > ul, .legal__body > h2 { max-width: 68ch; }
.legal__body h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); font-weight: 620; margin: 56px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body h2:first-child { margin-top: 0; }
@media (max-width: 767px) { .legal__body h2:not(:first-child) { margin-top: 48px; } } /* r11: terms and privacy back under their 390 screen targets */
.legal__body h3 { font-size: 1.1875rem; font-weight: 620; line-height: 1.3; }
.legal__body p, .legal__body ul, .legal__body ol { margin-bottom: 12px; }
.legal__body ul { list-style: none; display: grid; gap: 6px; }
.legal__body ul li { position: relative; padding-left: 22px; line-height: 1.5; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: calc(.75em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.legal__body ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; }
.legal__body a { color: var(--navy); font-weight: 600; }
.legal__body a[href^="tel:"], .legal__body a[href^="mailto:"] { white-space: nowrap; }
/* The short scope lists of the terms run in two columns on wider screens. */
@media (min-width: 768px) { .legal__body ul.legal__cols { display: block; columns: 2; column-gap: 40px; } .legal__body ul.legal__cols li { break-inside: avoid; margin-bottom: 6px; } }
/* One definition list per purpose (and per stored value), a hairline between them. On phones each label runs
   into its line; from 768px the labels stand in their own column. */
.purposes { margin-bottom: 14px; }
.purpose { padding-block: 16px; }
@media (min-width: 768px) { .purpose { padding-block: 20px; } }
.purpose + .purpose { border-top: 1px solid var(--line); }
.purpose:first-child { padding-top: 4px; }
.purpose dl { display: grid; gap: 6px; margin: 10px 0 0; }
.purpose dt { display: inline; font-weight: 600; color: var(--navy); }
.purpose dt::after { content: ": "; }
.purpose dd { display: inline; margin: 0; }
@media (min-width: 768px) { .purpose dl > div { display: grid; grid-template-columns: 184px minmax(0, 1fr); column-gap: 24px; } .purpose dt::after { content: none; } }
.nowrap { white-space: nowrap; }
/* An internal planning note shows on the staging host only. */
.internal-note { display: none; }
.staging .internal-note { display: inline; }
.legal__grid { display: grid; gap: 24px; }
.legal__small { font-size: var(--t-small); color: var(--ink-3); }
.legal__action { margin-top: 16px; }
/* Contents: a closed row on phones, a sticky plain list on laptops. */
.toc { border-block: 1px solid var(--line); }
.toc__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s var(--ease); }
.toc[open] > .toc__title::after { transform: translateY(2px) rotate(-135deg); }
.toc__list { display: grid; gap: 2px; padding-bottom: 12px; }
.toc__list a { display: block; padding: 8px 0 8px 1.4em; text-indent: -1.4em; line-height: 1.35; color: var(--navy); font-size: var(--t-small); font-weight: 600; text-decoration: none; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) { .toc__list a:hover { text-decoration: underline; text-underline-offset: .25em; } }
@media (min-width: 1024px) {
  .legal__grid { grid-template-columns: 240px minmax(0, 1fr); column-gap: 80px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 32px); border: 0; }
  .toc__title { min-height: 0; margin-bottom: 8px; cursor: default; font-size: var(--t-small); color: var(--ink-3); }
  .toc__title::after { display: none; }
  .toc__list { padding: 0; }
}

.thanks { position: relative; padding-block: clamp(48px, 8vw, 120px); overflow: hidden; isolation: isolate; }
.thanks__grid { display: grid; gap: 40px; align-items: center; }
.thanks h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); max-width: 16ch; }
.thanks .lead { margin-top: 16px; }
.thanks .lead + .lead { margin-top: 10px; }
.thanks .btn-row { margin-top: 28px; }
.thanks__talk { margin-top: 20px; color: var(--ink-2); }
.thanks__talk a { color: var(--navy); font-weight: 650; }
.icon-badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--green); color: var(--navy); }
.icon-badge .icon { width: 28px; height: 28px; stroke-width: 2.5; }
.icon-badge--pin { position: relative; width: 46px; height: 60px; border-radius: 0; background: none; }
.icon-badge--pin .brand-pin { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(10, 36, 92, .22)); }
.icon-badge--pin .icon-badge__tick { position: absolute; left: 50%; top: 37%; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--navy); stroke-width: 3; }
/* Malta in madum on navy, with the brand pin: */
.thanks__art { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; border-radius: var(--r-xl); background: var(--navy); overflow: hidden; isolation: isolate; box-shadow: var(--sh-2); }
.thanks__art .isle { width: 92%; left: 4%; top: 6%; }
.thanks__art-pin { position: absolute; width: 15%; left: 66.9%; top: 35.2%; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.thanks__art--lost .thanks__art-pin { left: 72%; top: 9%; transform: rotate(-16deg); }
/* v4 r7: one drawing, a different crop per page. Thank-you: close on St Julian's, where the pin lands.
   404: mostly open sea, the pin adrift off the north coast. */
.thanks__art:not(.thanks__art--lost) .isle { width: 250%; left: -145.5%; top: -82%; }
.thanks__art:not(.thanks__art--lost) .isle__tiles { background-size: 52px 52px; }
.thanks__art:not(.thanks__art--lost) .thanks__art-pin { width: 17%; left: 37.5%; top: 29.9%; }
.thanks__art--lost .isle { width: 190%; left: -62%; top: -14%; }
.thanks__art--lost .isle__tiles { background-size: 38px 38px; }
.thanks__art-code { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); padding: 7px 16px; border-radius: var(--r-pill); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 650; font-size: 1.0625rem; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
@media (min-width: 900px) { .thanks__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } }


/* 404 and thank-you: full-width buttons on phones, links that do not split */
@media (max-width: 559px) { .thanks .btn-row { display: grid; } .thanks .btn-row .btn { width: 100%; } }
.thanks__talk a { white-space: nowrap; }

