.terms-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-block: var(--space-3xl) var(--space-4xl);
}

.terms-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.terms-section {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.terms-section__marker {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-block-end: var(--space-xs);
}

.terms-section__marker .crosshair {
  width: 24px;
  height: 24px;
  color: var(--color-muted-grey);
}

.terms-section h1,
.terms-section h2,
.terms-section h3 {
  max-width: 68ch;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.terms-section h1 {
  margin-block-end: var(--space-lg);
}

.terms-section h2 {
  margin-block-end: var(--space-md);
}

.terms-section h3 {
  margin-block-end: var(--space-sm);
}

.terms-section p {
  max-width: 68ch;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.terms-section__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-pale-grey);
}

.terms-section__unit {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.terms-section__unit-title {
  margin-block-end: 0;
}

.terms-section__effective {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  min-width: 0;
}

.terms-section__effective .coordinate {
  flex-shrink: 0;
}

.terms-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 68ch;
}

.terms-list li {
  position: relative;
  padding-inline-start: var(--space-xl);
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A949C' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.terms-list--contact li {
  padding-inline-start: var(--space-xl);
}

.terms-list--contact a {
  color: var(--color-pale-grey);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
}

.terms-list--contact a:hover {
  color: var(--color-signal-orange);
}

.terms-section--dining {
  border-inline-start: var(--border-thickness) solid var(--color-armour-plate);
  padding-inline-start: var(--space-lg);
}

.terms-section--dining .terms-section__marker .crosshair {
  color: var(--color-muted-grey);
}

@media (min-width: 768px) {
  .terms-container {
    padding-inline: var(--container-padding-desktop);
  }

  .terms-section {
    gap: var(--space-lg);
  }

  .terms-section__unit {
    gap: var(--space-md);
  }

  .terms-list {
    gap: var(--space-sm);
  }
}

@media (max-width: 767px) {
  .terms-page {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .terms-container {
    gap: var(--space-2xl);
  }

  .terms-section {
    gap: var(--space-md);
  }

  .terms-section h1 {
    font-size: var(--text-h1-size);
  }

  .terms-section__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .terms-list li {
    padding-inline-start: var(--space-lg);
  }

  .terms-list li::before {
    width: 14px;
    height: 14px;
  }

  .terms-section--dining {
    padding-inline-start: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-page *,
  .terms-page *::before,
  .terms-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
