/* The privacy policy and the terms. One file for both: they are the same
   page with different words, and two copies would drift the moment one of
   them was edited.

   A file rather than a <style> block so Hosting can keep sending every page a
   Content-Security-Policy that allows no inline code — see firebase.json. */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* The page is a card on the ground, as the front page's sections are. */
.sheet {
  max-width: 1080px;
  margin: 8px auto;
  border-radius: 28px;
  background: var(--card);
}

@media (min-width: 900px) {
  .sheet { margin: 20px auto; border-radius: 40px; }
  .legal { padding: 4.5rem 1.25rem 5rem; }
}

@media (max-width: 1095px) {
  .sheet { margin-inline: 8px; }
}

/* Reading length, not display size: these are pages somebody scrolls through
   once looking for one paragraph, so the type is set for scanning. */
.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal__updated {
  color: var(--faint);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--accent);
}

/* The table of what is collected and why. Scrolls sideways on a phone rather
   than squeezing three columns into 360 points. */
.legal__table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.legal__table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.9375rem;
}

.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.legal__table th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.legal__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--faint);
}
