/* ============================================================
   COMMIT — legal pages
   Layers on tokens.css (palette, fonts, reset, .wrap, .eyebrow,
   .starfield). Provides the Instrument-style chrome — fixed
   starfield, branded header + footer — tuned for long-form reading.
   ============================================================ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* fixed, dimmed starfield behind everything */
.lf-star {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

/* ---- header ---- */
.lf-head {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.66);
  backdrop-filter: blur(14px);
}
.lf-head .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgba(110, 59, 255, 0.5)); }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  font-size: 16px;
  padding-left: 0.22em;
}
.back {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
  white-space: nowrap;
}
.back:hover { color: var(--text); }

/* ---- body ---- */
main {
  position: relative;
  z-index: 2;
  flex: 1;
}
.doc {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.doc .eyebrow { color: var(--muted); margin-bottom: 18px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.effective {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 36px;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.doc h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  margin: 26px 0 8px;
}
.doc p, .doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 9px; }
.doc a { color: var(--accent); font-weight: 600; }
.doc a:hover { color: var(--text); }
.doc strong { color: var(--text); font-weight: 600; }

/* informational callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

/* draft / review banner */
.draft-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: 0 0 36px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.draft-note a { color: var(--accent); font-weight: 600; }

/* ---- footer ---- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer .fm {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  font-size: 12px;
  color: var(--muted);
}
footer .copy {
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
  text-transform: none;
}
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
footer nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .doc { padding-top: 48px; padding-bottom: 72px; }
}
