/* The published legal pages.
 *
 * Loaded only on /terms and /privacy. Tokens come from admin.css; this sheet
 * only sets a reading measure and the vertical rhythm, because these pages are
 * read rather than operated.
 *
 * ⚠ No max-width override on `.content` and no layout beyond the wrapper — see
 * the note in editor.css about a page-specific sheet tightening the global
 * layout. This one owns its own wrapper class and touches nothing shared.
 */

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-head {
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2rem;
}
.legal-brand {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.legal-head h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.legal-version {
  margin: .5rem 0 0;
  font-size: .8125rem;
  color: var(--muted);
}

/* Around 65 characters is the comfortable measure for continuous prose, and a
   legal document is the one place on this product where somebody reads several
   hundred words in a row. */
.legal-body {
  font-size: 1rem;
  line-height: 1.65;
}
.legal-body section {
  margin-bottom: 2rem;
}
.legal-body h2 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 .625rem;
  text-wrap: balance;
}
.legal-body p {
  margin: 0 0 .8125rem;
  max-width: 68ch;
}
.legal-body p:last-child {
  margin-bottom: 0;
}

/* A list item from the source markdown. Indented with a hanging first line so
   the bullet sits outside the text block, which is what makes a run of them
   read as a list rather than as short paragraphs. */
.legal-item {
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.legal-foot {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
