/* Prose pages: the privacy notice, and anything else that is a document
   rather than an interface. Loaded after landing.css, which brings the
   tokens, the nav and the footer. */

.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: 32px 20px 72px;
  line-height: 1.65;
}

.legal h1 {
  margin: 8px 0 4px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 24px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin: 8px 0;
}

.legal a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9em;
  word-break: break-word;
}

.legal .updated {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal table {
  width: 100%;
  margin: 12px 0 8px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface);
  font-weight: 700;
}

/* A cookie name split across three lines ("eventso / nar_ses / sion") is not
   a name anyone can check against their browser. Only this table wants a
   first column sized to its contents; the retention one needs the room. */
.legal .cookies td:first-child {
  width: 1%;
}

.legal .cookies td:first-child code {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal thead {
    display: none;
  }

  .legal tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }

  .legal td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal tr td:last-child {
    border-bottom: 0;
  }
}
