/* Shared chrome for the legal pages. Same Aurora tokens as styles.css, but a
   document layout: one readable column, no hero, no scroll choreography. */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 40px;
}
.legal__back:hover { color: var(--lime); }

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  color: var(--text);
}

.legal h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.38em;
  color: var(--text);
}

/* Tables — subprocessors and licences both need them, and both are wide. */
.legal__table { overflow-x: auto; margin: 0 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.legal tbody tr:last-child td { border-bottom: none; }
.legal td:first-child { color: var(--text); font-weight: 500; }

/* A callout for the things a reader must not miss. */
.legal__note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.legal__note p:last-child { margin-bottom: 0; }
.legal__note strong { color: var(--lime); }

.legal__footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-3);
}

/* Licence bodies — long, pre-formatted, must not stretch the page. */
.legal__licence {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-x: auto;
}
