/* ============================================================
   FlyFleet — legal pages (Terms & Conditions, Privacy Policy).
   Uses the design tokens from main.css. Dark brand nav over a clean
   "paper" reading column, matching the account page.
   ============================================================ */

.legal-body { background: var(--paper); color: var(--ink); min-height: 100vh; }

.legal-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad);
  background: var(--void); color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.legal-nav .brand__name { color: #fff; }
.legal-back {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-dark-2); transition: color .2s ease;
}
.legal-back:hover { color: #fff; }

.legal { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) 90px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.02; text-transform: uppercase; margin: 10px 0 10px;
}
.legal__lead { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 30px; max-width: 62ch; }

/* numbered terms */
.terms { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.terms li {
  position: relative; padding: 18px 20px 18px 62px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface);
  font-weight: 600; letter-spacing: .01em; font-size: 15px; line-height: 1.5;
}
.terms li::before {
  counter-increment: t; content: counter(t);
  position: absolute; left: 18px; top: 16px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 100px;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px;
}

/* privacy prose */
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 28px 0 8px; }
.legal p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.legal ul.plain { margin: 0 0 12px; padding-left: 20px; list-style: disc; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal ul.plain li { margin: 4px 0; }
.legal a.inline { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__note { margin-top: 30px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper-2); color: var(--muted); font-size: 13px; line-height: 1.55; }
