.topbar-home {
  color: inherit;
  text-decoration: none;
}

.topbar-home:hover {
  color: var(--orange);
}

.legal {
  padding: 40px 24px 96px;
}

.legal-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.legal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-updated {
  margin: 8px 0 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.legal-text h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.legal-text p,
.legal-text ul {
  margin: 0 0 14px;
}

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

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

.legal-text a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.legal-text code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* Shown instead of the note once the script has made the button work */
.legal-consent {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-consent:not([hidden]) + .legal-consent-note {
  display: none;
}

.legal-end {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  background: var(--ink);
  color: #ffffff;
}

.legal-end .footer {
  border-top: 0;
}
