/* Legal and support pages, wearing the Nova design.
 *
 * Loaded after nova.css and only on the document pages, so it inherits every
 * Nova token and adds nothing to the weight of the landing page. Kept separate
 * rather than merged into nova.css because these rules exist to make long prose
 * readable, which is the opposite problem to the one nova.css solves.
 *
 * Nothing here changes a single word of the notices. The wording is a legal
 * commitment; only the frame around it moved. */

.legal {
  max-width: 78ch;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 148px) clamp(20px, 5vw, 40px) clamp(64px, 9vw, 104px);
  font-family: var(--sans);
  color: var(--ink);
}

/* A measure this long needs more leading than a landing page does. */
.legal p,
.legal li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1.04;
  margin: 0 0 0.35em;
  color: var(--ink);
}

.legal h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
  margin: 2.4em 0 0.6em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
  color: var(--gold);
}

.legal .eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin: 0 0 0.8em;
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2em;
}

.legal a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

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

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

.legal ul {
  padding-left: 1.2em;
}

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

/* Set apart from the prose because it qualifies everything below it. */
.legal .notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-mid);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 2.4em;
  color: var(--muted);
  line-height: 1.7;
}

.legal .steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.legal .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 1em;
}

.legal .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.8em;
  height: 1.8em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Tables carry the lawful-basis grid, which is wider than a phone. It scrolls
 * inside its own box so the page itself never scrolls sideways. */
.legal .table-wrap {
  overflow-x: auto;
  margin: 1.4em 0 2em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.legal .data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal .data-table th,
.legal .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.legal .data-table th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  background: rgba(0, 0, 0, 0.25);
}

.legal .data-table td {
  color: var(--muted);
}

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