.terms-page {
  overflow: hidden;
}

.terms-page .section {
  padding-block: clamp(var(--space-8), 8vw, var(--space-10));
}

.terms-hero {
  position: relative;
  padding-block: clamp(var(--space-8), 9vw, var(--space-11)) var(--space-7);
}

.terms-hero__grid,
.terms-section__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.terms-hero__copy {
  grid-column: 1 / span 7;
  min-width: 0;
  max-width: 43.75rem;
}

.terms-hero__copy h1 {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgb(15 102 112 / 45%);
}

.terms-hero__effective {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--color-slate-600);
  font-size: var(--text-sm);
  font-weight: 500;
}

.terms-hero__effective span {
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  background: var(--color-mustard-500);
  transform: rotate(45deg);
}

.terms-hero__lead {
  max-width: 41.25rem;
  margin-bottom: 0;
  padding-left: var(--space-5);
  border-left: 0.25rem solid var(--color-coral-500);
  font-size: var(--text-lg);
  line-height: 1.58;
}

.terms-hero__motif {
  position: relative;
  grid-column: 9 / span 4;
  min-width: 0;
  min-height: 18rem;
  color: var(--color-teal-800);
  opacity: 0.16;
}

.terms-hero__motif::before,
.terms-hero__motif::after,
.terms-hero__motif span,
.terms-hero__motif i {
  position: absolute;
  display: block;
  content: "";
}

.terms-hero__motif::before {
  top: 2rem;
  right: 1rem;
  width: 10rem;
  height: 14rem;
  border: 2px solid currentColor;
  transform: skewY(-30deg);
}

.terms-hero__motif::after {
  right: 4rem;
  bottom: 1rem;
  width: 11rem;
  height: 6rem;
  border: 2px solid currentColor;
  border-top: 0;
}

.terms-hero__motif span {
  top: 5rem;
  left: 0;
  width: 10rem;
  height: 10rem;
  border: 1.5rem solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.terms-hero__motif i {
  top: 8.5rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  border: 2px solid currentColor;
  background: var(--color-cream-050);
  transform: rotate(45deg);
}

.terms-map {
  padding-top: var(--space-7) !important;
}

.terms-map__panel {
  width: calc((100% - (var(--gutter) * 4)) / 12 * 8 + (var(--gutter) * 7));
  min-width: 0;
  max-width: 51.25rem;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-cream-100);
}

.terms-map__panel h2 {
  margin-bottom: var(--space-5);
}

.terms-map__list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-map__list > li {
  min-width: 0;
  border-top: 1px solid var(--color-border);
}

.terms-map__list a {
  display: grid;
  min-width: 0;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  color: var(--color-slate-900);
  font-weight: 600;
  text-decoration: none;
}

.terms-map__list a span {
  color: rgb(38 55 70 / 38%);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
}

.terms-map__list a:hover {
  color: var(--color-teal-800);
  box-shadow: inset 0 -2px 0 var(--color-coral-500);
}

.terms-section {
  scroll-margin-top: var(--space-8);
}

.terms-section__number {
  grid-column: 1 / span 2;
  min-width: 0;
  padding-top: 0.45rem;
  color: rgb(15 102 112 / 52%);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
}

.terms-section__content {
  grid-column: 3 / span 7;
  min-width: 0;
  max-width: 42.5rem;
}

.terms-section__content--wide-list {
  max-width: 45rem;
}

.terms-section__space {
  grid-column: 10 / span 3;
  min-width: 0;
  position: relative;
}

.terms-section__content > h2 {
  margin-bottom: var(--space-6);
}

.terms-copy h3,
.terms-restrictions h3,
.terms-limits h3,
.terms-conduct-list h3,
.terms-callout h3 {
  margin-bottom: var(--space-3);
}

.terms-copy h3 span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-teal-800);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.terms-copy--standard {
  max-width: 42.5rem;
}

.terms-copy--permissions {
  max-width: 41.875rem;
}

.terms-copy--rights {
  max-width: 40rem;
}

.terms-copy--links {
  max-width: 42.5rem;
}

.terms-copy--availability {
  max-width: 42.5rem;
}

.terms-copy--updates {
  max-width: 42.5rem;
}

.terms-copy ul,
.terms-restrictions ul {
  max-width: 43.75rem;
}

.terms-callout {
  min-width: 0;
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
}

.terms-callout > :last-child,
.terms-restrictions > :last-child,
.terms-limits > :last-child,
.terms-conduct-list > :last-child {
  margin-bottom: 0;
}

.terms-callout--light {
  max-width: 45rem;
  border-left: 0.25rem solid var(--color-mustard-500);
  background: var(--color-cream-100);
}

.terms-callout--dark {
  max-width: 42.5rem;
  border-left: 0.25rem solid var(--color-coral-500);
  background: var(--color-plum-800);
  color: var(--color-cream-050);
}

.terms-callout--dark h3 {
  color: var(--color-cream-050);
}

.terms-section--rules {
  position: relative;
}

.terms-restrictions {
  max-width: 43.75rem;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  background: var(--color-cream-100);
}

.terms-authorization {
  max-width: 37.5rem;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.terms-conduct-list {
  max-width: 45rem;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  background: var(--color-cream-100);
}

.terms-conduct-list__items {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
}

.terms-conduct-list__items > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(7rem, 2fr) minmax(0, 6fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.terms-conduct-list__items > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.terms-conduct-list__items > div:last-child {
  padding-bottom: 0;
}

.terms-conduct-list__items strong {
  min-width: 0;
  color: var(--color-teal-800);
}

.terms-conduct-list__items span {
  min-width: 0;
}

.terms-problems {
  max-width: 42.5rem;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.terms-limits {
  max-width: 40rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-coral-500);
}

.terms-section__space--plane::before {
  position: absolute;
  top: 7rem;
  right: 0;
  width: 8rem;
  height: 10rem;
  border: 1px solid rgb(15 102 112 / 25%);
  background: rgb(42 157 154 / 8%);
  content: "";
  transform: skewY(-28deg);
}

.terms-section__space--stairs::before,
.terms-section__space--stairs::after {
  position: absolute;
  display: block;
  width: 8rem;
  border: 2px solid rgb(81 59 88 / 10%);
  content: "";
}

.terms-section__space--stairs::before {
  top: 4rem;
  right: 1rem;
  height: 2.5rem;
  box-shadow: 1.5rem 2rem 0 -2px var(--color-cream-050), 1.5rem 2rem 0 0 rgb(81 59 88 / 10%), 3rem 4rem 0 -2px var(--color-cream-050), 3rem 4rem 0 0 rgb(81 59 88 / 10%);
}

.terms-section__space--stairs::after {
  top: 4rem;
  right: 1rem;
  height: 6.5rem;
  border-bottom: 0;
}

.terms-section--final {
  padding-bottom: var(--space-8) !important;
}

.terms-contact {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: var(--space-8);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  overflow: hidden;
  background: var(--color-teal-800);
  color: var(--color-cream-050);
}

.terms-contact__copy {
  grid-column: 1 / span 7;
  min-width: 0;
  max-width: 36.25rem;
  position: relative;
  z-index: 1;
}

.terms-contact .eyebrow,
.terms-contact h2 {
  color: var(--color-cream-050);
}

.terms-contact__copy p:last-child {
  margin-bottom: 0;
}

.terms-contact a {
  color: var(--color-white);
  overflow-wrap: anywhere;
}

.terms-contact__motif {
  position: absolute;
  right: 4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border: 2rem solid var(--color-coral-500);
  border-right-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.9;
  transform: rotate(45deg);
}

.terms-page :is(a, summary):focus-visible {
  outline: 3px solid var(--color-mustard-500);
  outline-offset: 3px;
}

.terms-map__list a[aria-current="true"] {
  color: var(--color-teal-800);
  box-shadow: inset 0 -2px 0 var(--color-coral-500);
}

.terms-section:target > .terms-section__grid .terms-section__content > h2,
.terms-section__content > h2.terms-heading-focus {
  outline: 2px solid rgb(214 164 58 / 58%);
  outline-offset: var(--space-2);
}

@media (max-width: 73.74rem) {
  .terms-hero__motif {
    grid-column: 10 / span 3;
    min-height: 14rem;
  }

  .terms-hero__motif::before {
    width: 7rem;
    height: 11rem;
  }

  .terms-hero__motif::after,
  .terms-hero__motif i {
    display: none;
  }

  .terms-map__panel {
    width: calc((100% - (var(--gutter) * 4)) / 12 * 8 + (var(--gutter) * 7));
  }

  .terms-callout--dark {
    max-width: 42.5rem;
  }
}

@media (max-width: 63.74rem) {
  .terms-section__number {
    grid-column: 1 / span 12;
    padding-top: 0;
    font-size: var(--text-2xl);
  }

  .terms-section__content {
    grid-column: 1 / span 8;
  }

  .terms-section__space {
    display: none;
  }
}

@media (max-width: 56.24rem) {
  .terms-map__panel {
    width: 100%;
    max-width: none;
  }

  .terms-map__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .terms-section__content {
    grid-column: 1 / span 12;
    max-width: 43.75rem;
  }

  .terms-contact__copy {
    grid-column: 1 / span 10;
  }
}

@media (max-width: 44.99rem) {
  .terms-hero {
    padding-block: var(--space-8) var(--space-7);
  }

  .terms-hero__grid,
  .terms-section__grid,
  .terms-contact {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .terms-hero__copy,
  .terms-section__number,
  .terms-section__content,
  .terms-contact__copy {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .terms-hero__copy h1 {
    font-size: clamp(2.5rem, 12vw, 3rem);
    line-height: 1.05;
  }

  .terms-hero__lead {
    max-width: none;
    font-size: var(--text-base);
  }

  .terms-hero__motif {
    display: none;
  }

  .terms-map__panel {
    padding: var(--space-5);
  }

  .terms-map__list a {
    min-height: 3rem;
  }

  .terms-section__number {
    font-size: var(--text-xl);
  }

  .terms-section__content > h2 {
    font-size: clamp(1.875rem, 8vw, 2.125rem);
    line-height: 1.14;
  }

  .terms-callout,
  .terms-restrictions,
  .terms-conduct-list {
    padding: var(--space-5);
  }

  .terms-conduct-list__items > div {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .terms-contact {
    margin-top: var(--space-7);
    padding: var(--space-6) var(--space-5);
  }

  .terms-contact__motif {
    right: -5rem;
    bottom: -7rem;
    width: 11rem;
    height: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-page * {
    scroll-behavior: auto;
  }
}
