/* -----------------------------------------------------------------------
   /privacy and /terms.

   Two long prose documents and nothing else, so this file is small on
   purpose: a measure that stays readable, headings that can be scanned by
   somebody looking for one clause, and generous space between sections.

   Everything structural — .wrap, .foot, .brandmark, .note — comes from
   brand.css, which every page loads. Nothing generic belongs here; a class
   defined only in this file would be unstyled on every other page, which is
   the bug stylesheet-coverage.test.js exists to catch.
   ----------------------------------------------------------------------- */

.legal {
  /* padding-top/bottom, NOT the shorthand: this element also carries .wrap,
     and `padding: 2.5rem 0` would reset .wrap's side padding to zero and put
     a legal document hard against the edge of a phone screen. That bug has
     shipped on three pages before; layout.test.js caught it here. */
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* The masthead. Page-specific, so it belongs in this file rather than
   brand.css — only these two pages use it. */
.legal-top {
  border-bottom: 1px solid var(--rule);
}

.legal-top__inner {
  display: flex;
  align-items: center;
  /* Same reason as above: this carries .wrap too. */
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.legal-top img {
  width: 72px;
  height: auto;
  display: block;
}

.legal__head {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.legal__head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
}

/* The date is load-bearing on a document people may have agreed to under
   different wording, so it is stated plainly rather than tucked away. */
.legal__updated {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray);
}

.legal__lede {
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.legal__body {
  max-width: 68ch;
}

.legal__body h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.legal__body p,
.legal__body li {
  line-height: 1.65;
}

.legal__body ul {
  margin: 0.6rem 0 1rem;
  padding-left: 1.1rem;
}

.legal__body li {
  margin-bottom: 0.45rem;
}

/* A clause that is a promise about someone's confidential information, rather
   than boilerplate. Used sparingly — three times across both documents. */
.legal__key {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--green);
  background: var(--paper-alt);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.legal__key p {
  margin: 0;
}

.legal__toc {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9375rem;
}
