/* ============================================================
   POLICY PAGES — shared typography for Privacy, Terms, SMS Consent
   ------------------------------------------------------------
   Loaded *after* landing.css. Reuses tokens, nav chrome, footer.
   Adds: editorial article column, h1/h2 hierarchy, dl-style
   definition lists, breadcrumb back link.
   ============================================================ */

/* ---------- shell ---------- */
body.policy-page {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The fixed nav from landing.css overlays content. Pad below it. */
.policy-shell {
  padding-top: 140px;
  padding-bottom: 80px;
}

/* ---------- breadcrumb ---------- */
.policy-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-hair);
}
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--krew-grain-warm, var(--bg-surface));
  transition: all var(--dur-2) var(--ease-out);
}
.policy-back:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translate(-2px, 0);
}
.policy-back svg { display: block; }
.policy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.policy-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- article ---------- */
.policy-article {
  max-width: 760px;
  margin: 0 auto;
}

/* H1 + dates */
.policy-title {
  font-family: var(--font-display, 'Gloock', Georgia, serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--fg-1);
  text-wrap: balance;
}
.policy-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 56px;
  padding: 16px 0;
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.policy-dates strong {
  color: var(--fg-2);
  font-weight: 700;
  margin-right: 6px;
}

/* Optional lede above sections (used on SMS Consent / standalone summary) */
.policy-lede {
  font-family: var(--font-display, 'Gloock', Georgia, serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--fg-2);
  margin: 0 0 56px;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

/* H2 — section heading */
.policy-article h2 {
  font-family: var(--font-display, 'Gloock', Georgia, serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
  color: var(--fg-1);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.policy-article h2::before {
  content: counter(policy-section, decimal) ")";
  counter-increment: policy-section;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  flex: none;
  position: relative;
  top: -2px;
}
.policy-article {
  counter-reset: policy-section;
}
/* When a section's number is custom (skipped/non-sequential, e.g. "16)" or "26)")
   the markup uses <h2 data-num="..."> and we render that instead of the counter */
.policy-article h2[data-num]::before {
  content: attr(data-num) ")";
  counter-increment: none;
}
/* Reset the counter so subsequent auto-numbered h2s still work */
.policy-article h2[data-num] {
  counter-set: policy-section attr(data-num integer, 0);
}

/* H3 — sub-heading inside a section (no counter) */
.policy-article h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-17, 17px);
  letter-spacing: -0.005em;
  margin: 28px 0 10px;
  color: var(--fg-1);
}

/* Body */
.policy-article p {
  margin: 0 0 18px;
  font-size: var(--fs-15, 15px);
  line-height: 1.7;
  color: var(--fg-2);
  text-wrap: pretty;
}
.policy-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-2);
}
.policy-article a:hover { text-decoration-thickness: 2px; }

.policy-article strong { color: var(--fg-1); font-weight: 700; }

/* Lists */
.policy-article ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.policy-article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: var(--fs-15, 15px);
  line-height: 1.65;
  color: var(--fg-2);
}
.policy-article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Definition-style lists (used in Terms §2 Definitions, Privacy §3) */
.policy-article ul.policy-defs li::before {
  background: transparent;
  border: 1.5px solid var(--accent);
  width: 7px; height: 7px;
  top: 0.6em;
  left: 3px;
}
.policy-article ul.policy-defs li strong {
  display: inline;
}
.policy-article ul.policy-defs li strong::after {
  content: " — ";
  color: var(--fg-3);
  font-weight: 400;
}

/* Sub-headed group (e.g. "Account and contact data" with bullets under it) */
.policy-group {
  margin: 0 0 24px;
}
.policy-group h3 + ul,
.policy-group h3 + p {
  margin-top: 0;
}

/* Callout / non-sharing notice / appendix-style box */
.policy-callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--krew-grain-warm, var(--bg-surface));
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.policy-callout :first-child { margin-top: 0; }
.policy-callout :last-child { margin-bottom: 0; }
.policy-callout p,
.policy-callout li {
  font-size: var(--fs-14);
}

/* Contact card */
.policy-contact {
  margin: 32px 0 0;
  padding: 24px 28px;
  background: var(--krew-grain-warm, var(--bg-surface));
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.policy-contact .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.policy-contact p { margin: 0 0 16px; }
.policy-contact p:last-child { margin-bottom: 0; }
.policy-contact .addr {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-1);
  white-space: pre-line;
}

/* Appendix divider — heavier-weight section break */
.policy-article .policy-appendix {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 2px dashed var(--border-soft);
}
.policy-article .policy-appendix h2 {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--fg-1);
}
.policy-article .policy-appendix h2::before {
  content: none;
  counter-increment: none;
}
.policy-article .policy-appendix .appendix-mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Print: hide chrome */
@media print {
  .nav, .footer, .footer-sth-bleed, .policy-breadcrumb { display: none !important; }
  .policy-shell { padding-top: 0; }
  .policy-article { max-width: none; }
  body { background: white; color: black; }
  .policy-article a { color: black; text-decoration: underline; }
}

/* Small screens */
@media (max-width: 600px) {
  .policy-shell { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 56px; }
  .policy-article h2 { gap: 10px; }
  .policy-dates { font-size: 11px; gap: 16px; }
}
