/* ============================================================
 * POLICY PAGES — shared layout (design system v2)
 * Monzo-style legal pages: hub pill strip · tinted hero with
 * chips + huge bold title · sticky scroll-spy table of contents
 * beside the prose. Loads AFTER home-v2.css (nav/footer/contact).
 * Used by: Privacy Policy, Terms and Conditions, Carbon Reduction Plan.
 * ============================================================ */

html { scroll-padding-top: 120px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- hub strip: all policy docs, active highlighted ---------- */
.pol-hub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 18px clamp(16px, 2.5vw, 32px);
  background: #fff;
}
.pol-hub a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ge-navy, #0F1438);
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pol-hub a:hover { background: #F3F7FA; }
.pol-hub a.is-here { background: #EEF2F6; font-weight: 700; }

/* ---------- hero: tinted band, chips, huge title ---------- */
.pol-hero {
  background: var(--ge-blue-3, #D9F4FF);
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 20px;
}
.pol-hero__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.pol-chip {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--ge-blue, #1B367E);
  color: #fff;
}
.pol-chip--light { background: #fff; color: var(--ge-navy, #0F1438); }
.pol-hero h1 {
  margin: 0;
  color: var(--ge-navy, #0F1438);
  font-size: clamp(38px, 6vw, 76px);
}
.pol-hero__date {
  margin: clamp(14px, 2vw, 24px) 0 0;
  font-size: 16px;
  color: #4A5876;
}

/* ---------- layout: sticky TOC + prose ---------- */
.pol-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(64px, 8vw, 110px) 0 clamp(240px, 20vw, 320px);
}

.pol-toc { align-self: start; position: sticky; top: 96px; }
.pol-toc__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7689;
  margin: 0 0 10px;
  padding-left: 14px;
}
.pol-toc nav { display: flex; flex-direction: column; }
.pol-toc a {
  padding: 11px 14px;
  border-top: 1px solid #E6ECF4;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ge-navy, #0F1438);
  text-decoration: none;
  border-radius: 12px;
  transition: background 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pol-toc a:first-of-type { border-top: none; }
.pol-toc a:hover { background: #F3F7FA; }
.pol-toc a.is-active {
  background: #EEF2F6;
  font-weight: 700;
  border-top-color: transparent;
}
.pol-toc a.is-active + a { border-top-color: transparent; }

/* ---------- prose ---------- */
.pol-prose { max-width: 74ch; min-width: 0; }
.pol-prose h2 {
  font-size: clamp(24px, 2.4vw, 33px);
  margin: clamp(40px, 5vw, 64px) 0 18px;
  color: var(--ge-navy, #0F1438);
}
.pol-prose h2:first-child { margin-top: 0; }
.pol-prose h3 {
  font-size: 19px;
  margin: 32px 0 12px;
  color: var(--ge-navy, #0F1438);
}
.pol-prose p, .pol-prose li {
  font-size: 16.5px;
  line-height: 1.65;
  color: #2A3352;
}
.pol-prose p { margin: 0 0 16px; }
.pol-prose ul, .pol-prose ol { margin: 0 0 16px; padding-left: 24px; }
.pol-prose li { margin-bottom: 8px; }
.pol-prose a { color: var(--ge-blue, #1B367E); }
.pol-prose a:hover { color: var(--ge-navy, #0F1438); }
.pol-prose strong { font-weight: 700; }

/* tables — 700 headers per the brand rule */
.pol-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15.5px;
}
@media (max-width: 640px) {
  /* wide tables scroll within themselves rather than stretching the page */
  .pol-prose table { display: block; overflow-x: auto; }
}
.pol-prose th {
  text-align: left;
  font-weight: 700;
  background: var(--ge-bg-light, #F3F7FA);
  padding: 12px 14px;
  border: 1px solid #E6ECF4;
  color: var(--ge-navy, #0F1438);
}
.pol-prose td {
  padding: 12px 14px;
  border: 1px solid #E6ECF4;
  color: #2A3352;
  font-variant-numeric: tabular-nums;
}
.pol-prose tr:nth-child(even) td { background: #FAFCFE; }

/* callout card for key statements (declaration, commitments) */
.pol-callout {
  background: var(--ge-bg-light, #F3F7FA);
  border-radius: 24px;
  padding: clamp(22px, 2.6vw, 36px);
  margin: 0 0 24px;
}
.pol-callout p:last-child { margin-bottom: 0; }

/* stat tiles (carbon page) */
.pol-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
.pol-stat {
  background: #fff;
  /* stroke -> soft shadow, 4 Aug brand review (one tile treatment sitewide) */
  box-shadow: var(--tile-shadow);
  border-radius: var(--tile-radius);
  padding: 22px;
}
.pol-stat__num {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  color: var(--ge-navy, #0F1438);
  line-height: 1.08;
}
.pol-stat__label { margin: 6px 0 0; font-size: 14px; color: #4A5876; }
.pol-stat--green { background: var(--ge-green-1, #F3FAEE); border-color: var(--ge-green-2, #E6F3D9); }
/* ⚠ #4F7D2C, not --ge-green-4 — 6 Aug 2026, accessibility audit (SC 1.4.3).
   #76A74F is 2.83:1 on white and the engine read this "Net Zero" figure at
   2.66:1, well under the 4.5:1 minimum. #4F7D2C is 4.88:1 and is already the
   site's accessible green (founders-club.css uses it for the same reason). */
.pol-stat--green .pol-stat__num { color: #4F7D2C; }

/* download row (carbon PDF etc.) */
.pol-download {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 0;
  padding: 22px 26px;
  background: var(--ge-blue-3, #D9F4FF);
  border-radius: 24px;
}
.pol-download p { margin: 0; font-size: 15px; color: var(--ge-navy, #0F1438); flex: 1; min-width: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .pol-layout { grid-template-columns: 1fr; }
  .pol-toc { position: static; }
  .pol-toc nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .pol-toc a, .pol-toc a:first-of-type { border-top: none; background: #F3F7FA; }
  .pol-toc a.is-active { background: #EEF2F6; }
  .pol-stats { grid-template-columns: 1fr; }
}
