/* Typography for the legal documents (Terms of Service / Privacy Policy)
 * and the first-login acceptance interstitial.
 *
 * The app's Tailwind build does NOT include the @tailwindcss/typography
 * plugin (tailwind.config.js → plugins: []), so the `prose` class is a
 * no-op and Tailwind's preflight flattens every <h1>-<h6> to inherit the
 * body font size + weight. That made section titles look identical to
 * body text. These rules restore a clear hierarchy and are scoped to
 * `.legal-doc` so nothing else on the site is affected.
 *
 * Linked per-page in legal/_shell.html (public Terms/Privacy pages) and
 * legal/accept.html (the gate interstitial). Plain CSS — no Tailwind
 * rebuild needed.
 */

.legal-doc {
  color: #374151;            /* gray-700 */
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-doc > h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;            /* gray-900 */
  margin: 0 0 0.75rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
  margin: 1.75rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #eef2f7;   /* subtle rule under each section */
}

.legal-doc p {
  margin: 0.7rem 0;
}

.legal-doc ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.7rem 0;
}

.legal-doc ul ul {
  list-style: circle;
  margin: 0.35rem 0;
}

.legal-doc li {
  margin: 0.3rem 0;
}

.legal-doc strong {
  font-weight: 600;          /* color intentionally inherited so the red
                                warning callouts keep their own colour */
}

.legal-doc em {
  font-style: italic;
}

.legal-doc a {
  color: #2563eb;            /* blue-600 */
  text-decoration: underline;
}

.legal-doc a:hover {
  color: #1d4ed8;            /* blue-700 */
}

/* Compact variant used inside the acceptance interstitial's scrollable
 * panes. The pane already has a section header above it labelling the
 * document, so the in-pane <h1> title is redundant — hide it and tighten
 * the heading scale to suit the smaller box. */
.legal-doc--pane {
  font-size: 0.9rem;
}

.legal-doc--pane > h1 {
  display: none;
}

.legal-doc--pane h2 {
  font-size: 1.02rem;
  margin-top: 1.25rem;
}
