.terms-page {
  background: var(--color-paper);
}

.terms-page section[id] {
  scroll-margin-top: 7rem;
}

.terms-page .eyebrow {
  color: var(--color-leaf);
}

.terms-section {
  position: relative;
}

.terms-section--paper {
  background: var(--color-paper);
  color: var(--color-text);
}

.terms-section--patio {
  background: var(--color-patio);
  color: var(--color-text-inverse);
}

.terms-cover {
  padding-block: clamp(var(--space-9), 13vw, var(--space-10));
  overflow: hidden;
}

.terms-cover__grid,
.terms-reach__grid,
.terms-content__grid,
.terms-reservation__grid,
.terms-poker__grid,
.terms-conduct__grid,
.terms-limits__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-5);
}

.terms-cover__number {
  grid-column: 1 / 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1;
}

.terms-cover__content {
  grid-column: 2 / span 7;
  width: 100%;
  min-width: 0;
}

.terms-cover__content .rule {
  margin-block: var(--space-5);
}

.terms-cover h1 {
  max-width: 10ch;
  margin-bottom: var(--space-5);
  font-size: clamp(3.75rem, 7vw, 4.5rem);
}

.terms-cover__effective {
  margin-bottom: var(--space-5);
  color: var(--color-wood);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.terms-cover__lead {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.terms-cover__band {
  grid-column: 10 / 13;
  width: 100%;
  min-width: 0;
  min-height: 25rem;
  align-self: stretch;
  background: var(--color-patio);
}

.terms-reach__grid {
  row-gap: var(--space-5);
}

.terms-section__marker {
  grid-column: 1 / 2;
  width: 100%;
  min-width: 0;
  padding-top: var(--space-2);
}

.terms-reach__content {
  grid-column: 2 / span 7;
  width: 100%;
  min-width: 0;
}

.terms-reach__content > h2 {
  max-width: 19ch;
  margin-bottom: var(--space-6);
}

.terms-clause {
  max-width: 66ch;
}

.terms-clause--rule {
  padding-bottom: var(--space-5);
  border-bottom: var(--border-default);
}

.terms-clause--rule + .terms-clause--rule {
  padding-top: var(--space-5);
}

.terms-clause--accent {
  border-inline-start: 2px solid var(--color-gold);
  padding-inline-start: var(--space-5);
}

.terms-clause h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
}

.terms-clause p:last-child,
.terms-clause ul:last-child {
  margin-bottom: 0;
}

.terms-purpose-list {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-5);
  max-width: 72ch;
  margin-bottom: var(--space-4);
}

.terms-purpose-list > li {
  min-width: 0;
}

.terms-content__grid {
  row-gap: var(--space-7);
}

.terms-content__copy {
  grid-column: 3 / 11;
  width: 100%;
  min-width: 0;
}

.terms-content__copy > h2 {
  max-width: 21ch;
  margin-bottom: var(--space-6);
}

.terms-content__copy > .terms-clause {
  max-width: 64ch;
}

.terms-restrictions {
  max-width: 58ch !important;
  margin-top: var(--space-6);
}

.terms-restrictions ul {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: 0;
}

.terms-restrictions li {
  min-width: 0;
}

.terms-submission-note {
  grid-column: 3 / 11;
  width: 100%;
  min-width: 0;
  padding: var(--space-6);
  border: var(--border-gold);
  background-color: var(--color-wood);
}

.terms-submission-note h3 {
  max-width: 24ch;
  margin-top: var(--space-3);
}

.terms-submission-note p:not(.eyebrow) {
  max-width: 60ch;
  margin-bottom: 0;
}

.terms-reservation__grid {
  row-gap: var(--space-7);
}

.terms-reservation__intro {
  grid-column: 1 / span 7;
  width: 100%;
  min-width: 0;
}

.terms-reservation__intro h2 {
  max-width: 20ch;
  margin-top: var(--space-3);
}

.terms-reservation__notice {
  max-width: 54ch;
  padding-block: var(--space-5);
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}

.terms-reservation__notice p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.35;
}

.terms-reservation__steps {
  grid-column: 1 / -1;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.terms-step {
  width: 100%;
  min-width: 0;
  padding-top: var(--space-4);
  border-top: var(--border-gold);
}

.terms-step__number {
  margin-bottom: var(--space-4);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1;
}

.terms-step h3 {
  max-width: 18ch;
  margin-bottom: var(--space-3);
}

.terms-step p:not(.terms-step__number) {
  max-width: 34ch;
  margin-bottom: 0;
}

.terms-reservation__closing {
  grid-column: 1 / span 7;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  max-width: 60ch;
}

.terms-reservation__closing p {
  margin: 0;
}

.terms-reservation__side-note {
  color: var(--color-leaf);
  font-size: var(--text-sm);
  font-weight: 700;
}

.terms-poker__grid {
  row-gap: var(--space-7);
}

.terms-poker__intro {
  grid-column: 2 / span 7;
  width: 100%;
  min-width: 0;
}

.terms-poker__intro h2 {
  max-width: 21ch;
  margin-top: var(--space-3);
}

.terms-poker__lead {
  max-width: 58ch;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.terms-poker__intro p:not(.eyebrow):not(.terms-poker__lead) {
  max-width: 62ch;
}

.terms-principles {
  grid-column: 2 / span 7;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-5);
}

.terms-principle {
  width: 100%;
  min-width: 0;
  padding-block: var(--space-4);
  border-top: var(--border-default);
}

.terms-principle:nth-child(3),
.terms-principle:nth-child(4) {
  border-bottom: var(--border-default);
}

.terms-principle h3 {
  max-width: 20ch;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0;
}

.terms-principle p {
  max-width: 30ch;
  margin-bottom: 0;
}

.terms-participation {
  grid-column: 4 / 11;
  width: 100%;
  min-width: 0;
  padding: var(--space-6);
  border: var(--border-gold);
  background-color: var(--color-wood);
}

.terms-participation h3 {
  max-width: 25ch;
  margin-top: var(--space-3);
}

.terms-participation p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
}

.terms-conduct__grid {
  row-gap: var(--space-6);
}

.terms-conduct__intro {
  grid-column: 1 / span 6;
  width: 100%;
  min-width: 0;
}

.terms-conduct__intro h2 {
  max-width: 19ch;
  margin-top: var(--space-3);
}

.terms-conduct__intro p:not(.eyebrow) {
  max-width: 60ch;
  margin-bottom: 0;
}

.terms-conduct__clause {
  width: 100%;
  min-width: 0;
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--color-gold);
}

.terms-conduct__clause h3 {
  max-width: 23ch;
  margin-bottom: var(--space-3);
}

.terms-conduct__clause p:not(.terms-conduct__note) {
  max-width: 54ch;
}

.terms-conduct__clause--care {
  grid-column: 1 / span 5;
}

.terms-conduct__clause--communication {
  grid-column: 7 / span 4;
  margin-top: var(--space-5);
}

.terms-conduct__note {
  margin-bottom: 0;
  color: var(--color-leaf);
  font-size: var(--text-sm);
}

.terms-limits__grid {
  row-gap: var(--space-6);
}

.terms-limits__heading {
  grid-column: 3 / 10;
  width: 100%;
  min-width: 0;
}

.terms-limits__heading h2 {
  max-width: 22ch;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.terms-limits__clauses {
  grid-column: 2 / 10;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
}

.terms-numbered-clause {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(0, 7fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-top: var(--border-default);
}

.terms-numbered-clause:last-child {
  border-bottom: var(--border-default);
}

.terms-numbered-clause__number {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1;
}

.terms-numbered-clause > div {
  width: 100%;
  min-width: 0;
}

.terms-numbered-clause h3 {
  max-width: 25ch;
  margin-bottom: var(--space-3);
}

.terms-numbered-clause p:not(.terms-date-stamp) {
  max-width: 65ch;
}

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

.terms-date-stamp {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-2);
  margin-bottom: 0;
  padding: var(--space-3) var(--space-4);
  border: var(--border-gold);
  color: var(--color-wood);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.terms-section--closing {
  padding-top: 0;
  background: var(--color-paper);
}

.terms-closing__panel {
  padding-block: var(--space-9);
  background-color: var(--color-wood);
}

.terms-closing__content {
  width: 100%;
  max-width: 43.75rem;
  margin-inline: auto;
}

.terms-closing__content h2 {
  max-width: 17ch;
  margin-top: var(--space-3);
}

.terms-closing__content > p:not(.eyebrow) {
  max-width: 54ch;
}

.terms-email {
  display: inline-block;
  max-width: 100%;
  margin-top: var(--space-2);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
}

.terms-closing__address {
  width: 100%;
  min-width: 0;
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--border-gold);
}

.terms-closing__address .eyebrow {
  margin-bottom: var(--space-2);
}

.terms-closing__address address {
  max-width: 58ch;
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .terms-cover__grid,
  .terms-reach__grid,
  .terms-content__grid,
  .terms-reservation__grid,
  .terms-poker__grid,
  .terms-conduct__grid,
  .terms-limits__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .terms-cover__number {
    grid-column: 1 / 2;
  }

  .terms-cover__content {
    grid-column: 2 / -1;
  }

  .terms-cover__band {
    display: none;
  }

  .terms-section__marker {
    grid-column: 1 / -1;
  }

  .terms-reach__content {
    grid-column: 1 / span 7;
  }

  .terms-content__copy,
  .terms-submission-note {
    grid-column: 1 / -1;
  }

  .terms-reservation__intro,
  .terms-reservation__closing {
    grid-column: 1 / -1;
  }

  .terms-poker__intro,
  .terms-principles,
  .terms-participation {
    grid-column: 1 / -1;
  }

  .terms-conduct__intro {
    grid-column: 1 / span 6;
  }

  .terms-conduct__clause--care {
    grid-column: 1 / span 4;
  }

  .terms-conduct__clause--communication {
    grid-column: 5 / span 4;
  }

  .terms-limits__heading {
    grid-column: 1 / span 7;
  }

  .terms-limits__clauses {
    grid-column: 1 / span 7;
  }
}

@media (max-width: 860px) {
  .terms-purpose-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-reservation__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-step:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc((100% - var(--space-5)) / 2);
  }
}

@media (max-width: 780px) {
  .terms-conduct__intro,
  .terms-conduct__clause--care,
  .terms-conduct__clause--communication {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .terms-page section[id] {
    scroll-margin-top: 5.5rem;
  }

  .terms-cover {
    padding-block: var(--space-8);
  }

  .terms-cover__grid,
  .terms-reach__grid,
  .terms-content__grid,
  .terms-reservation__grid,
  .terms-poker__grid,
  .terms-conduct__grid,
  .terms-limits__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .terms-cover__number,
  .terms-cover__content,
  .terms-section__marker,
  .terms-reach__content,
  .terms-content__copy,
  .terms-submission-note,
  .terms-reservation__intro,
  .terms-reservation__steps,
  .terms-reservation__closing,
  .terms-poker__intro,
  .terms-principles,
  .terms-participation,
  .terms-conduct__intro,
  .terms-conduct__clause--care,
  .terms-conduct__clause--communication,
  .terms-limits__heading,
  .terms-limits__clauses {
    grid-column: 1 / -1;
  }

  .terms-cover__content .rule {
    margin-block: var(--space-4);
  }

  .terms-cover h1 {
    max-width: 11ch;
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

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

  .terms-reach__content > h2,
  .terms-content__copy > h2,
  .terms-reservation__intro h2,
  .terms-poker__intro h2,
  .terms-conduct__intro h2,
  .terms-limits__heading h2 {
    max-width: none;
  }

  .terms-clause,
  .terms-content__copy > .terms-clause,
  .terms-restrictions,
  .terms-submission-note p:not(.eyebrow),
  .terms-reservation__notice,
  .terms-reservation__closing,
  .terms-poker__lead,
  .terms-poker__intro p:not(.eyebrow):not(.terms-poker__lead),
  .terms-participation p:not(.eyebrow),
  .terms-conduct__intro p:not(.eyebrow),
  .terms-conduct__clause p:not(.terms-conduct__note),
  .terms-numbered-clause p:not(.terms-date-stamp),
  .terms-closing__content > p:not(.eyebrow) {
    max-width: none;
  }

  .terms-submission-note,
  .terms-participation {
    padding: var(--space-5);
  }

  .terms-reservation__steps,
  .terms-principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .terms-step:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

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

  .terms-step p:not(.terms-step__number) {
    max-width: none;
  }

  .terms-principle:nth-child(3),
  .terms-principle:nth-child(4) {
    border-bottom: 0;
  }

  .terms-principle:last-child {
    border-bottom: var(--border-default);
  }

  .terms-principle p {
    max-width: none;
  }

  .terms-numbered-clause {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

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

  .terms-closing__content {
    max-width: none;
  }
}

@media (max-width: 359px) {
  .terms-cover h1 {
    font-size: 2.25rem;
  }

  .terms-reservation__notice p {
    font-size: 1.35rem;
  }

  .terms-closing__panel {
    padding-inline: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-page * {
    transition-duration: 120ms !important;
  }
}
