/* ==========================================================================
   Terms of service and privacy policy (terms.html, privacy.html).
   Plain reading pages on white, using the landing page's fonts and colours.
   ========================================================================== */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.legal-header .logo { color: var(--black); }
.legal-header .logo svg { color: var(--blue); }

.legal-back {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  /* An 880px reading column, plus the page gutters (the container pads both sides). */
  max-width: calc(880px + var(--gutter) * 2);
  padding-block: var(--s-80) var(--s-120);
}

.legal h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal__updated {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.legal__intro {
  margin-top: 24px;
  font-size: 19px;
  line-height: 30px;
}

.legal__contents {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--grey-100);
}

.legal__contents h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.legal__contents ol {
  margin: 0;
  padding-left: 20px;
  columns: 2 260px;
  column-gap: 32px;
  font-size: 15px;
  line-height: 28px;
}

.legal__contents a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.legal section {
  margin-top: 48px;
  scroll-margin-top: 96px;
}

.legal h2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 700;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 28px;
  color: var(--grey-700);
}

.legal p { margin-top: 12px; }

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

.legal li + li { margin-top: 6px; }

.legal section a,
.legal__intro a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.legal-footer {
  padding-block: 32px;
  border-top: 1px solid var(--grey-200);
  font-size: 15px;
  color: var(--muted);
}

.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.legal-footer nav { display: flex; gap: 24px; }
.legal-footer a { color: var(--black); font-weight: 600; }
.legal-footer a[aria-current='page'] { color: var(--blue); }
