/* ============================================================
   LEGAL PAGES — Privacy Policy + Terms of Use.
   A short ink "stage" header followed by a single readable
   prose column on paper. Built entirely on brand tokens.
   ============================================================ */

/* ---- Ink stage header ---- */
.legal-hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding: clamp(92px, 8vw, 112px) clamp(28px, 5vw, 56px) clamp(44px, 6vw, 64px);
}
.legal-hero__dots {
  position: absolute;
  inset: 0;
  background-image: var(--dot-pattern-blue);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.legal-hero__diamond {
  position: absolute;
  top: -150px;
  right: -130px;
  width: 360px;
  height: 360px;
  transform: rotate(48deg);
  border: 1.5px solid var(--blue);
  border-radius: 16px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--w-prose);
  margin: 0 auto;
}
.legal-hero .eyebrow { color: var(--on-dark-65); }
.legal-hero__h1 {
  font-family: var(--font-display);
  font-weight: var(--w-serif);
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
  color: var(--on-dark);
  text-wrap: balance;
}
.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--on-dark-65);
  margin: 0;
}
.legal-hero__meta strong { color: var(--on-dark); font-weight: 800; }
.legal-hero__meta a { color: var(--blue-light); text-decoration: none; }
.legal-hero__meta a:hover { color: var(--blue-light); text-decoration: underline; }
.legal-hero__sep {
  width: 7px; height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ---- Prose body ---- */
.legal {
  background: var(--paper);
  padding: clamp(56px, 8vw, 88px) clamp(28px, 5vw, 56px) clamp(72px, 10vw, 104px);
}
.legal__inner {
  max-width: var(--w-prose);
  margin: 0 auto;
}

/* Lead paragraph */
.legal__lead {
  font-family: var(--font-body);
  font-size: var(--fs-20);
  line-height: var(--lh-body);
  color: var(--ink-70);
  margin: 0 0 8px;
  text-wrap: pretty;
}

/* Section headings */
.legal h2 {
  font-family: var(--font-ui);
  font-weight: var(--w-heavy);
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 52px 0 14px;
  scroll-margin-top: 96px;
}
.legal h2:first-of-type { margin-top: 40px; }

/* Bold lead-in sub-labels (e.g. "Personal Data", "Session Cookies") */
.legal h3 {
  font-family: var(--font-ui);
  font-weight: var(--w-heavy);
  font-size: var(--fs-18);
  line-height: 1.3;
  color: var(--ink);
  margin: 30px 0 10px;
}

.legal p {
  font-family: var(--font-body);
  font-weight: var(--w-book);
  font-size: var(--fs-17);
  line-height: 1.72;
  color: var(--ink-70);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.legal p strong { color: var(--ink); font-weight: 800; }

.legal a {
  color: var(--blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.legal a:hover { color: var(--blue-deep); text-decoration: underline; }

/* Diamond-marker lists — the diamond replaces the bullet */
.legal ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.legal ul li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  font-weight: var(--w-book);
  font-size: var(--fs-17);
  line-height: 1.6;
  color: var(--ink-70);
  text-wrap: pretty;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px; height: 7px;
  background: var(--blue);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1px;
}
.legal ul li strong { color: var(--ink); font-weight: 800; }

/* Thin rule between the intro and the first real section, used sparingly */
.legal__rule {
  height: 1px;
  background: var(--ink-10);
  border: 0;
  margin: 36px 0 4px;
}

/* Contact card — cream panel with a hairline, brand radius */
.legal__contact {
  margin: 14px 0 4px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-4);
}
.legal__contact p {
  margin: 0 0 4px;
  font-size: var(--fs-17);
  color: var(--ink-70);
}
.legal__contact p:first-child {
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font-ui);
}
.legal__contact p:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
  /* Match the home hero's tight top padding on phones, and drop the
     date separator diamond in the meta line. */
  .legal-hero { padding-top: 40px; }
  .legal-hero__sep { display: none; }
}
@media (max-width: 600px) {
  .legal h2 { margin-top: 44px; }
}
