.terms-page {
  overflow: hidden;
}

.terms-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 620px;
  height: 72vh;
  align-items: center;
  overflow: hidden;
  background: var(--color-obsidian);
}

.terms-hero__image,
.terms-hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.terms-hero__image {
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.78) contrast(1.04);
}

.terms-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 12, 16, 0.96) 0%, rgba(11, 12, 16, 0.86) 43%, rgba(11, 12, 16, 0.42) 75%, rgba(11, 12, 16, 0.58) 100%);
}

.terms-hero__container {
  width: min(100%, var(--container-max));
}

.terms-hero__panel {
  display: flex;
  width: min(58%, 42.5rem);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.terms-hero__panel .eyebrow,
.terms-hero__panel h1,
.terms-hero__panel p {
  margin: 0;
}

.terms-hero__panel h1 {
  max-width: 18ch;
}

.terms-hero__lead {
  max-width: 64ch;
  padding: var(--space-5);
  border-top: 1px solid var(--color-border-gold);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  background: rgba(11, 12, 16, 0.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.terms-hero__lead p {
  font-size: var(--text-lg);
}

.terms-hero__date {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.terms-hero__date strong {
  color: var(--color-ivory);
}

.terms-hero__update {
  max-width: 60ch;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.terms-hero__cta {
  min-height: 3rem;
}

.terms-orientation {
  padding-bottom: var(--space-7);
}

.terms-orientation__content {
  width: min(100%, 53.75rem);
  min-width: 0;
}

.terms-orientation__content > .eyebrow,
.terms-orientation__content > h2 {
  margin-bottom: var(--space-4);
}

.terms-orientation__content > h2 {
  max-width: 28ch;
}

.terms-toc {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  background: var(--surface-card), var(--surface-glass);
  box-shadow: var(--shadow-subtle);
}

.terms-toc > a {
  display: grid;
  min-width: 0;
  min-height: 3.5rem;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ivory);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.terms-toc > a:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.terms-toc > a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.terms-toc > a span {
  color: var(--color-champagne);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
}

.terms-toc > a strong {
  min-width: 0;
  line-height: 1.35;
}

.terms-toc > a:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-champagne-light);
}

.terms-document {
  padding-top: var(--space-7);
}

.terms-article {
  display: grid;
  min-width: 0;
  grid-template-columns: 4.5rem minmax(0, 47.5rem);
  align-items: start;
}

.terms-article__number {
  width: 100%;
  margin: var(--space-2) 0 0;
  color: var(--color-champagne);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
}

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

.terms-article__body > h2 {
  max-width: 24ch;
}

.terms-rule-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms-rules;
}

.terms-rule-list > li {
  position: relative;
  min-width: 0;
  padding: var(--space-5) 0 0 3.25rem;
  border-top: 1px solid var(--color-border);
  counter-increment: terms-rules;
}

.terms-rule-list > li::before {
  position: absolute;
  top: var(--space-5);
  left: 0;
  width: 2.25rem;
  color: var(--color-champagne);
  content: "0" counter(terms-rules);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
}

.terms-rule-list h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

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

.terms-gastronomy {
  position: relative;
}

.terms-gastronomy::before {
  position: absolute;
  z-index: -1;
  width: 32rem;
  height: 24rem;
  top: 15%;
  left: -10rem;
  background: var(--ambient-glow);
  content: "";
  pointer-events: none;
}

.terms-gastronomy__panel {
  display: grid;
  width: min(100%, 51.25rem);
  min-width: 0;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-graphite);
  box-shadow: var(--shadow-subtle);
}

.terms-gastronomy__copy {
  width: min(100%, 43.75rem);
  min-width: 0;
}

.terms-gastronomy__copy > h2 {
  max-width: 26ch;
}

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

.terms-gastronomy__block + .terms-gastronomy__block {
  margin-top: var(--space-5);
}

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

.terms-gastronomy__block h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

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

.terms-lounge__layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: var(--space-7);
}

.terms-lounge__copy,
.terms-lounge__image {
  min-width: 0;
  width: 100%;
}

.terms-lounge__copy {
  max-width: 45rem;
}

.terms-lounge__copy > h2 {
  max-width: 23ch;
}

.terms-warning {
  display: grid;
  min-width: 0;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid rgba(201, 107, 91, 0.62);
  border-radius: var(--radius-md);
  background: rgba(201, 107, 91, 0.09);
}

.terms-warning > span {
  display: flex;
  width: 3rem;
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-danger);
  border-radius: 50%;
  color: #f0b2a7;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
}

.terms-warning p {
  margin: 0;
  max-width: 48ch;
}

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

.terms-lounge__text h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.terms-lounge__text h3:not(:first-child) {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.terms-lounge__text p {
  max-width: 65ch;
}

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

.terms-lounge__image {
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: var(--radius-xl);
}

.terms-lounge__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.terms-responsibility__heading {
  width: min(100%, 38.75rem);
  min-width: 0;
  margin-bottom: var(--space-6);
}

.terms-responsibility__heading .terms-article__number {
  margin-bottom: var(--space-3);
}

.terms-responsibility__heading h2 {
  max-width: 34ch;
  margin-bottom: 0;
}

.terms-principles {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.terms-principle {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  background: var(--surface-card), var(--surface-glass);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

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

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

.terms-principle p {
  max-width: 40ch;
}

.terms-principle:hover,
.terms-principle:focus-within {
  border-color: var(--color-border-gold-strong);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.terms-article--narrow {
  grid-template-columns: 4.5rem minmax(0, 43.75rem);
}

.terms-rule-list--compact {
  gap: var(--space-5);
}

.terms-rule-list__closing {
  padding: var(--space-5) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg);
  background: rgba(26, 28, 35, 0.78);
}

.terms-rule-list__closing::before {
  left: var(--space-5) !important;
}

.terms-rule-list__closing h3,
.terms-rule-list__closing p {
  margin-left: 3.25rem;
}

.terms-closing__copy {
  width: min(100%, 45rem);
  min-width: 0;
}

.terms-closing__copy .terms-article__number {
  margin-bottom: var(--space-3);
}

.terms-closing__copy h2 {
  max-width: 24ch;
}

.terms-closing__copy p {
  max-width: 66ch;
}

.terms-cta {
  display: grid;
  width: min(100%, 56.25rem);
  min-width: 0;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr);
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background: var(--surface-card), var(--color-graphite);
  box-shadow: var(--shadow-soft);
}

.terms-cta__copy,
.terms-cta__actions {
  min-width: 0;
  width: 100%;
}

.terms-cta__copy .eyebrow,
.terms-cta__copy h2,
.terms-cta__copy p {
  margin: 0;
}

.terms-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.terms-cta__copy h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.terms-cta__copy p {
  max-width: 52ch;
}

.terms-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.terms-cta__actions .button--primary {
  width: 100%;
  min-height: 3rem;
}

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

[data-terms-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-terms-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terms-hero__panel > [data-terms-reveal]:nth-of-type(1) {
  transition-delay: 120ms;
}

.terms-hero__panel > [data-terms-reveal]:nth-of-type(2) {
  transition-delay: 220ms;
}

@media (max-width: 979px) {
  .terms-hero__panel {
    width: min(68%, 42.5rem);
  }

  .terms-hero__shade {
    background: linear-gradient(90deg, rgba(11, 12, 16, 0.96) 0%, rgba(11, 12, 16, 0.88) 58%, rgba(11, 12, 16, 0.66) 100%);
  }

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

  .terms-lounge__copy {
    max-width: 45rem;
  }

  .terms-lounge__image {
    width: min(100%, 38rem);
  }
}

@media (max-width: 899px) {
  .terms-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-principles > :nth-child(3) {
    grid-column: 1 / -1;
  }

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

  .terms-toc > a,
  .terms-toc > a:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .terms-toc > a:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 839px) {
  .terms-article,
  .terms-article--narrow,
  .terms-gastronomy__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .terms-article__number {
    margin-top: 0;
  }
}

@media (max-width: 699px) {
  .terms-hero {
    min-height: 560px;
    height: auto;
    padding-block: var(--space-8);
  }

  .terms-hero__image {
    object-position: center;
  }

  .terms-hero__shade {
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.84) 0%, rgba(11, 12, 16, 0.91) 62%, rgba(11, 12, 16, 0.96) 100%);
  }

  .terms-hero__panel {
    width: 100%;
    gap: var(--space-3);
  }

  .terms-hero__panel h1 {
    max-width: 16ch;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .terms-hero__lead {
    width: 100%;
    padding: var(--space-4);
  }

  .terms-hero__lead p {
    font-size: var(--text-base);
  }

  .terms-hero__cta {
    width: 100%;
  }

  .terms-orientation {
    padding-bottom: var(--space-6);
  }

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

  .terms-document {
    padding-top: var(--space-6);
  }

  .terms-rule-list > li {
    padding-left: 2.75rem;
  }

  .terms-rule-list h3,
  .terms-gastronomy__block h3,
  .terms-lounge__text h3,
  .terms-principle h3 {
    font-size: var(--text-lg);
  }

  .terms-gastronomy__panel {
    width: 100%;
    padding: var(--space-5);
  }

  .terms-lounge__copy > h2 {
    max-width: 21ch;
  }

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

  .terms-warning > span {
    width: 2.75rem;
    min-height: 2.75rem;
  }

  .terms-lounge__image {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

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

  .terms-principles > :nth-child(3) {
    grid-column: auto;
  }

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

  .terms-rule-list__closing h3,
  .terms-rule-list__closing p {
    margin-left: 2.75rem;
  }

  .terms-cta {
    width: 100%;
    margin-top: var(--space-6);
    padding: var(--space-5);
  }

  .terms-cta__actions .button--primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-terms-reveal],
  [data-terms-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
