/* Legal documents use the website's typefaces, gutters and two breakpoints. */
.legal-page {
  --legal-nav-height: 48px;
}
.legal-page .header-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.legal-section-nav {
  width: 100%;
  max-width: 660px;
  min-width: 0;
  justify-self: center;
  overflow: clip;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
}
.legal-section-nav[data-dragging],
.legal-section-nav[data-dragging] a {
  cursor: grabbing;
}
.legal-section-track {
  display: flex;
  align-items: center;
  position: relative;
  gap: clamp(14px, 2vw, 28px);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.legal-section-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 68%;
  min-height: var(--legal-nav-height);
  font-size: clamp(14px, 0.875em, 17.5px);
  line-height: 1.3;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 180ms ease;
}
.legal-section-link span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.legal-section-link[data-centred="true"] {
  opacity: 1;
}
.legal-page .header-mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.3em;
  font-size: var(--site-body);
  line-height: 1.35;
}
.legal-page .header-mobile-list {
  gap: 0.1em;
}
.legal-page .header-mobile-link span {
  font-size: inherit;
  line-height: inherit;
}
.legal-page .header-mobile-link[aria-current="location"] {
  color: var(--color-accent);
}
.legal-main {
  max-width: 80em;
  margin-inline: auto;
  padding: clamp(132px, 10vw, 192px) var(--site-gutter) clamp(48px, 6vw, 112px);
}
.legal-shell {
  width: 100%;
  margin-inline: 0;
}
.legal-document {
  font-size: var(--site-body);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(40px, calc(16px + 3.333333vw), 80px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 0.35em;
  text-wrap: balance;
  hyphens: auto;
}
.legal-document .legal-updated {
  margin-bottom: 2.5em;
  color: var(--color-text-light);
  font-size: 0.875em;
}
.legal-document h2 {
  margin: 2.25em 0 0.75em;
  font-family: var(--font-display);
  font-size: clamp(24px, 1.5em, 32px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.25;
  scroll-margin-top: var(--legal-scroll-offset, 120px);
}
.legal-document h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.125em;
  font-weight: 500;
}
.legal-document p,
.legal-document ul,
.legal-document ol {
  margin: 0 0 1em;
}
.legal-document ul,
.legal-document ol {
  padding-left: 1.25em;
}
.legal-document ul {
  list-style: disc;
}
.legal-document ol {
  list-style: decimal;
}
.legal-document li + li {
  margin-top: 0.4em;
}
.legal-document strong {
  font-weight: 600;
}
.legal-document a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 180ms ease;
}
@media (hover: hover) {
  .legal-document a:hover {
    color: var(--color-accent);
    text-decoration: underline;
  }
}
.legal-document code {
  font-size: 0.9em;
  white-space: normal;
}
.legal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
  line-height: 1.55;
}
.legal-table th,
.legal-table td {
  padding: 0.9em 1em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.legal-table th {
  background: var(--color-surface);
  font-weight: 500;
}
.legal-table td:first-child {
  font-weight: 500;
}
.legal-cell-label {
  display: none;
}
@media (max-width: 1024px) {
  .legal-page .header-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .legal-section-nav {
    display: none;
  }
}
@media (max-width: 767px) {
  .legal-main {
    padding-top: calc(
      var(--mobile-header-control) + var(--mobile-header-padding) * 2 + var(--site-gutter) * 4
    );
    padding-bottom: max(32px, var(--site-gutter) * 2);
  }
  .legal-title {
    font-size: clamp(32px, 7.2vw, 56px);
  }
  .legal-document h2 {
    margin-top: 1.75em;
  }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
  }
  .legal-table {
    font-size: 1em;
  }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .legal-table tr {
    padding: 1em 0;
    border-bottom: 1px solid var(--color-border);
  }
  .legal-table tbody tr:first-child {
    border-top: 1px solid var(--color-border);
  }
  .legal-table td {
    padding: 0;
    border: 0;
  }
  .legal-table td + td {
    margin-top: 0.75em;
  }
  .legal-cell-label {
    display: block;
    margin-bottom: 0.2em;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--color-text-light);
  }
}
@media (prefers-reduced-motion: reduce) {
  .legal-section-track,
  .legal-section-link {
    transition: none;
  }
}
