.terms-page {
  background: var(--surface-light);
  color: var(--text-dark);
}

.terms-page a {
  color: inherit;
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--color-cognac) 72%, transparent);
}

.terms-page a:hover {
  color: var(--color-cognac-dark);
}

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

.terms-hero {
  overflow: hidden;
  position: relative;
  background: var(--surface-page);
  color: var(--text-primary);
  padding-block: clamp(var(--space-10), 12vw, var(--space-11));
}

.terms-hero__grid,
.terms-section__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(var(--space-5), 3vw, var(--space-8));
}

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

.terms-hero__content > :last-child {
  margin-bottom: 0;
}

.terms-hero__lead {
  max-width: 38.75rem;
  color: var(--color-pearl-muted);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
}

.terms-hero__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--color-cognac) 65%, transparent);
  color: var(--color-pearl-muted);
  padding-top: var(--space-4);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: var(--line-height-small);
  text-transform: uppercase;
}

.terms-hero__meta > span {
  min-width: 0;
}

.terms-hero__meta strong {
  color: var(--color-pearl-cream);
}

.terms-hero__ornament {
  grid-column: 9 / span 4;
  min-width: 0;
  min-height: 21rem;
  border: 1px solid var(--color-line-light);
  background:
    linear-gradient(90deg, transparent 49.5%, var(--color-line-light) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, var(--color-line-light) 50%, transparent 50.5%);
  opacity: 0.55;
  position: relative;
}

.terms-hero__ornament::before,
.terms-hero__ornament::after {
  position: absolute;
  inset: 10% 12%;
  border: 1px solid var(--color-line-light);
  content: "";
}

.terms-hero__ornament::after {
  inset: 24% 25%;
}

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

.terms-section__index,
.terms-responsibility__label,
.terms-lounge__side-label {
  min-width: 0;
  color: var(--color-pewter);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: var(--line-height-small);
  text-transform: uppercase;
}

.terms-section__body {
  min-width: 0;
}

.terms-section__body > :last-child {
  margin-bottom: 0;
}

.terms-section--scope {
  background: var(--surface-light);
}

.terms-section__grid--scope > .terms-section__index {
  grid-column: 1 / span 1;
  align-self: start;
  border-top: 1px solid color-mix(in srgb, var(--color-cognac) 60%, transparent);
  padding-top: var(--space-3);
}

.terms-section__body--scope {
  grid-column: 2 / span 7;
  max-width: 43.75rem;
}

.terms-numbered-list {
  counter-reset: legal-rule;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-numbered-list__item {
  position: relative;
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 16%, transparent);
  padding: var(--space-6) 0 var(--space-5) clamp(var(--space-7), 7vw, var(--space-8));
}

.terms-numbered-list__item::before {
  position: absolute;
  top: var(--space-6);
  left: 0;
  color: var(--color-cognac-dark);
  content: counter(legal-rule, decimal-leading-zero);
  counter-increment: legal-rule;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
}

.terms-numbered-list__item--accent {
  border-left: 2px solid var(--color-cognac);
  padding-left: calc(clamp(var(--space-7), 7vw, var(--space-8)) - 2px);
}

.terms-numbered-list__item h3,
.terms-rule-list__item h3,
.terms-visit-article h3,
.terms-lounge__article h3,
.terms-private__article h3,
.terms-responsibility__article h3,
.terms-closing__article h3 {
  margin-bottom: var(--space-3);
}

.terms-numbered-list__item p,
.terms-rule-list__item p,
.terms-visit-article p,
.terms-lounge__article p,
.terms-private__article p,
.terms-responsibility__article p,
.terms-closing__article p {
  margin-bottom: 0;
}

.terms-section--reservation {
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-light) 94%, var(--color-burgundy-marble));
}

.terms-section__grid--reservation > .terms-section__body--reservation {
  grid-column: 1 / span 7;
  max-width: 42.5rem;
}

.terms-intro {
  max-width: 40rem;
  color: color-mix(in srgb, var(--color-plum-ink) 78%, var(--color-burgundy-marble));
  font-size: 1.08rem;
}

.terms-rule-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.terms-rule-list__item {
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 17%, transparent);
  padding-block: var(--space-6);
}

.terms-rule-list__item > .meta {
  color: var(--color-cognac-dark);
  margin-bottom: var(--space-2);
}

.terms-reservation__accent {
  grid-column: 10 / span 3;
  min-width: 0;
  min-height: 32rem;
  align-self: stretch;
  background:
    radial-gradient(circle at 10% 40%, transparent 0 27%, rgba(241, 231, 211, 0.18) 27.25% 27.5%, transparent 27.75%),
    radial-gradient(circle at 10% 40%, transparent 0 49%, rgba(241, 231, 211, 0.13) 49.25% 49.5%, transparent 49.75%),
    var(--color-burgundy-marble);
}

.terms-section--visit {
  background: var(--surface-light);
}

.terms-section__grid--visit > .terms-section__body--visit {
  grid-column: 3 / span 6;
  max-width: 41.25rem;
}

.terms-visit-article {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(2.25rem, 3.5rem) minmax(0, 1fr);
  gap: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 16%, transparent);
  padding-block: var(--space-6);
}

.terms-visit-article > * {
  min-width: 0;
}

.terms-visit-article__number {
  color: var(--color-pewter);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 0.9;
}

.terms-visit-inset {
  max-width: 36.25rem;
  margin-top: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-burgundy-marble) 68%, transparent);
  background: var(--color-burgundy-marble);
  color: var(--color-pearl-cream);
  padding: var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.terms-section--lounge {
  background: var(--surface-page);
  color: var(--text-primary);
}

.terms-section--lounge a,
.terms-section--closing a {
  color: var(--color-pearl-cream);
  text-decoration-color: var(--color-cognac);
}

.terms-section--lounge a:hover,
.terms-section--closing a:hover {
  color: var(--color-cognac);
}

.terms-section__grid--lounge > .terms-section__body--lounge {
  grid-column: 1 / span 7;
  max-width: 42.5rem;
}

.terms-lounge__mobile-label {
  display: none;
}

.terms-lounge__lead {
  max-width: 42.5rem;
  margin-bottom: var(--space-6);
  border-left: 2px solid var(--color-cognac);
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.terms-lounge__lead p {
  margin: 0;
  color: var(--color-pearl-cream);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
}

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

.terms-lounge__article {
  min-width: 0;
  max-width: 38.75rem;
  border: var(--border-subtle);
  background: rgba(20, 14, 22, 0.46);
  padding: var(--space-5);
}

.terms-lounge__article--offline {
  border-color: color-mix(in srgb, var(--color-peacock-green) 78%, var(--color-pearl-cream));
  background: var(--color-deep-peacock);
}

.terms-lounge__article .meta {
  color: var(--color-cognac);
  margin-bottom: var(--space-2);
}

.terms-lounge__side-label {
  grid-column: 10 / span 3;
  align-self: center;
  border-left: 1px solid var(--color-line-light);
  color: color-mix(in srgb, var(--color-pearl-cream) 28%, transparent);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
  line-height: 0.92;
  padding-left: var(--space-5);
  text-transform: uppercase;
}

.terms-section--private {
  background: #ece1cc;
}

.terms-section__grid--private > .terms-private__indexes {
  display: flex;
  min-width: 0;
  grid-column: 1 / span 2;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-burgundy-marble);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  padding-block: 5.6rem 1.7rem;
}

.terms-private__indexes > span {
  min-width: 0;
}

.terms-section__grid--private > .terms-section__body--private {
  grid-column: 3 / span 7;
  max-width: 43.75rem;
}

.terms-private__articles {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.terms-private__article {
  display: grid;
  min-width: 0;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 17%, transparent);
  padding-block: var(--space-6);
}

.terms-private__article > * {
  min-width: 0;
}

.terms-private__inline-index {
  display: none;
}

.terms-private__contact {
  margin-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-cognac) 55%, transparent);
  padding-top: var(--space-4);
}

.terms-section--responsibility {
  background: var(--surface-light);
}

.terms-section__grid--responsibility > .terms-responsibility__label {
  grid-column: 1 / span 2;
  align-self: start;
  border-right: 1px solid color-mix(in srgb, var(--color-plum-ink) 15%, transparent);
  color: var(--color-burgundy-marble);
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.terms-section__grid--responsibility > .terms-section__body--responsibility {
  grid-column: 3 / span 7;
  max-width: 41.25rem;
}

.terms-responsibility__articles {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.terms-responsibility__article {
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 16%, transparent);
  padding-block: var(--space-5);
}

.terms-responsibility__article .meta {
  color: var(--color-burgundy-marble);
  margin-bottom: var(--space-2);
}

.terms-section--closing {
  overflow: hidden;
  background: var(--surface-page);
  color: var(--text-primary);
}

.terms-section__grid--closing > .terms-closing__panel {
  grid-column: 2 / span 7;
  min-width: 0;
  max-width: 42.5rem;
  border: var(--border-subtle);
  border-bottom: 4px solid var(--color-peacock-green);
  background: rgba(20, 14, 22, 0.45);
  box-shadow: var(--shadow-deep);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.terms-closing__panel > :last-child {
  margin-bottom: 0;
}

.terms-closing__article {
  min-width: 0;
  border-top: 1px solid var(--color-line-light);
  padding-block: var(--space-5);
}

.terms-back-link {
  display: inline-flex;
  min-width: 0;
  margin-top: var(--space-4);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.terms-closing__ornament {
  grid-column: 10 / span 3;
  min-width: 0;
  min-height: 24rem;
  align-self: stretch;
  border: 1px solid var(--color-line-light);
  background:
    linear-gradient(45deg, transparent 49.7%, var(--color-line-light) 50%, transparent 50.3%),
    linear-gradient(-45deg, transparent 49.7%, var(--color-line-light) 50%, transparent 50.3%);
  opacity: 0.58;
}

@media (max-width: 64rem) {
  .terms-hero__content {
    grid-column: 1 / span 8;
  }

  .terms-hero__ornament {
    grid-column: 10 / span 3;
  }

  .terms-section__grid--reservation > .terms-section__body--reservation {
    grid-column: 1 / span 8;
  }

  .terms-reservation__accent {
    grid-column: 10 / span 3;
    min-height: 24rem;
  }

  .terms-section__grid--lounge > .terms-section__body--lounge {
    grid-column: 1 / span 8;
  }

  .terms-lounge__side-label {
    grid-column: 10 / span 3;
    font-size: clamp(2rem, 4vw, 3.4rem);
  }
}

@media (max-width: 61.25rem) {
  .terms-section__grid--scope > .terms-section__index {
    grid-column: 1 / span 12;
    width: fit-content;
    margin-bottom: var(--space-4);
  }

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

  .terms-section__grid--visit > .terms-section__body--visit {
    grid-column: 1 / span 8;
    max-width: 41.25rem;
  }

  .terms-section__grid--private > .terms-private__indexes {
    display: none;
  }

  .terms-section__grid--private > .terms-section__body--private {
    grid-column: 1 / span 9;
  }

  .terms-private__article {
    grid-template-columns: minmax(2rem, 2.75rem) minmax(0, 1fr);
    gap: var(--space-3);
  }

  .terms-private__inline-index {
    display: block;
    color: var(--color-burgundy-marble);
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
  }
}

@media (max-width: 56.25rem) {
  .terms-hero__content {
    grid-column: 1 / span 12;
    max-width: 42.5rem;
  }

  .terms-hero__ornament {
    display: none;
  }

  .terms-section__body--scope,
  .terms-section__grid--reservation > .terms-section__body--reservation,
  .terms-section__grid--visit > .terms-section__body--visit,
  .terms-section__grid--lounge > .terms-section__body--lounge,
  .terms-section__grid--private > .terms-section__body--private,
  .terms-section__grid--responsibility > .terms-section__body--responsibility,
  .terms-section__grid--closing > .terms-closing__panel {
    grid-column: 1 / span 9;
  }

  .terms-reservation__accent,
  .terms-closing__ornament {
    display: none;
  }

  .terms-lounge__side-label {
    display: none;
  }

  .terms-lounge__mobile-label {
    display: block;
    color: var(--color-cognac);
    margin-bottom: var(--space-3);
  }

  .terms-section__grid--responsibility > .terms-responsibility__label {
    grid-column: 1 / span 12;
    width: fit-content;
    margin-bottom: var(--space-4);
    border-right: 0;
    border-top: 1px solid color-mix(in srgb, var(--color-plum-ink) 15%, transparent);
    padding: var(--space-3) 0 0;
    writing-mode: horizontal-tb;
    transform: none;
  }
}

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

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

  .terms-hero__content,
  .terms-section__body--scope,
  .terms-section__grid--reservation > .terms-section__body--reservation,
  .terms-section__grid--visit > .terms-section__body--visit,
  .terms-section__grid--lounge > .terms-section__body--lounge,
  .terms-section__grid--private > .terms-section__body--private,
  .terms-section__grid--responsibility > .terms-section__body--responsibility,
  .terms-section__grid--closing > .terms-closing__panel {
    grid-column: 1 / span 12;
    width: 100%;
    max-width: none;
  }

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

  .terms-hero__meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .terms-numbered-list__item {
    padding-left: var(--space-7);
  }

  .terms-numbered-list__item--accent {
    padding-left: calc(var(--space-7) - 2px);
  }

  .terms-visit-article {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: var(--space-3);
  }

  .terms-visit-inset,
  .terms-lounge__lead,
  .terms-lounge__article,
  .terms-section__grid--closing > .terms-closing__panel {
    max-width: none;
    padding: var(--space-5);
  }

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

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