/* SpeedPro, legal pages (Terms, Privacy, Cookies)
   Structure copied from the 2xN reference build: dark headline hero, single
   reading column, numbered sections, dot bullets. Re-skinned to the SpeedPro
   system, so the numbers and rules are Ink and coral stays a fill.
   Our theme tokens already flip, so no separate dark block is needed. */

/* ---- Hero ---- */
.legal-hero { background: var(--ink); color: var(--paper); }
.legal-hero__inner { padding-block: 72px 64px; }
.legal-hero__lead { max-width: none; }
/* Breadcrumbs sit on the ink hero here, so they invert. */
.legal-hero .crumbs, .legal-hero .crumbs a, .legal-hero .crumbs [aria-current] { color: #A8A49B; }
.legal-hero .crumbs a:hover { color: var(--paper); }
/* Same gap under the breadcrumb as the type-led inner-page heroes. */
.legal-hero .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.legal-hero .crumbs [aria-current] { color: var(--paper); }
.legal-hero__h1 { color: var(--paper); }
.legal-hero__h1 .dot { color: var(--accent); }
.legal-hero__meta {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px; letter-spacing: 0.02em;
  color: #A8A49B; margin: 0;
}
.legal-hero__meta a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---- Body ---- */
.legal { background: var(--bg); }
.legal__inner { max-width: 760px; padding: 72px 0 96px; }
.legal__intro {
  font-size: 18px; line-height: 1.7;
  color: var(--fg); margin: 0 0 44px; text-wrap: pretty;
}
.legal__intro strong { font-weight: 700; }

.legal-section { margin: 0 0 40px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section__head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; }
.legal-section__num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--fg-muted); flex: none; transform: translateY(-1px);
}
.legal-section__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--fg); margin: 0;
}
.legal-section p {
  font-size: 16px; line-height: 1.7;
  color: var(--fg-2); margin: 0 0 14px; text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--fg); font-weight: 700; }
.legal-section a {
  color: var(--accent-text); font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-line);
  transition: border-color 160ms ease, color 160ms ease;
}
.legal-section a:hover { border-bottom-color: var(--accent); }

.legal-section dl { margin: 4px 0 14px; display: grid; gap: 10px; }
.legal-section dt { font-weight: 700; color: var(--fg); font-size: 15px; }
.legal-section dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

.legal-section ul { margin: 4px 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-section li {
  position: relative; padding-left: 24px;
  font-size: 16px; line-height: 1.6; color: var(--fg-2);
}
.legal-section li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.legal-section li strong { color: var(--fg); }

/* Anything still waiting on the client. Never ships unresolved. */
.legal-section__todo {
  display: block; background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 14px 16px; margin: 0 0 14px;
  font-size: 15px; line-height: 1.6; color: var(--fg);
}

/* Callout for the cookie-manager button link. */
.legal-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 13px 22px; min-height: 44px;
  background: var(--accent); color: var(--accent-ink) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  transition: background 180ms ease;
}
.legal-cta-btn:hover { background: #FF6F63; }

@media (max-width: 640px) {
  .legal-hero__inner { padding-block: 44px 40px; }
  .legal__inner { padding: 48px 0 64px; }
  .legal__intro { font-size: 16px; }
}
