/* Legal pages and the consent banner.
   Same tokens as the rest of the site, set for long-form reading: a measure
   near 68 characters, generous leading, and headings that are scannable
   because nobody reads a privacy policy top to bottom. */

.legal main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 40px) 96px;
}
.legal .eyebrow { display: block; }
.legal h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: .96;
  letter-spacing: -.055em;
  margin: 16px 0 18px;
}
.legal h1 em { font-family: "Instrument Serif", serif; font-weight: 400; font-style: italic; }
.legal .updated { font-size: 12px; font-weight: 700; color: var(--soft); letter-spacing: .02em; }
.legal .summary {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--acid);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  margin: 28px 0 40px;
}
.legal .summary h2 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 10px; }
.legal .summary p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #3d443e; }
.legal .summary p:last-child { margin-bottom: 0; }

.legal h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  letter-spacing: -.03em;
  margin: 46px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 16px; margin: 26px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.68; color: #3d443e; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal b, .legal strong { color: var(--ink); }
.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .88em; background: #eef0e8; padding: 1px 5px; border-radius: 4px;
}

.legal .toc { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal .toc li { margin: 0; }
.legal .toc a {
  display: inline-block; font-size: 12px; font-weight: 700; text-decoration: none;
  color: var(--soft); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 12px; background: #fff;
}
.legal .toc a:hover { color: var(--ink); border-color: var(--ink); }

.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.legal .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 18px; }
.legal table { min-width: 520px; }
.legal tr:last-child td { border-bottom: 0; }

.legal .consent-box {
  background: #eef0e8; border-radius: 14px; padding: 18px 20px; margin: 18px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.legal .consent-box p { margin: 0; flex: 1 1 280px; font-size: 14px; }
.legal .consent-box button {
  background: var(--ink); color: #fff; border-radius: 99px;
  padding: 10px 18px; font-weight: 700; font-size: 13px; border: 0; cursor: pointer;
}
.legal .consent-box button.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }

/* Footer, shared. Replaces the old single-line footer that named a legal
   entity and linked to nothing but the blog. */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot-links a {
  color: #fff; font-size: 11px; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.foot-links a:hover { border-bottom-color: var(--acid); }
.legal .foot { margin-top: 0; }

/* Consent banner */
.cc {
  position: fixed; left: 0; right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cc-inner {
  pointer-events: auto;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 24px 60px -24px #171d1866;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.cc-text { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.55; color: #c8cec8; }
.cc-text b { color: #fff; }
.cc-text a { color: var(--acid); }
.cc-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cc button {
  border: 0; cursor: pointer; border-radius: 99px;
  padding: 10px 16px; font-weight: 700; font-size: 13px; font-family: inherit;
}
.cc-yes { background: var(--acid); color: var(--ink); }
.cc-no { background: #2b322c; color: #c8cec8; }
.cc button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

@media (max-width: 560px) {
  .cc-inner { flex-direction: column; align-items: stretch; }
  .cc-actions { justify-content: stretch; }
  .cc-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
