/* Terms and Conditions page-owned styles */

.terms-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Hero */
.terms-hero {
  position: relative;
  padding: var(--space-96) var(--container-padding-mobile) var(--space-64);
  overflow: hidden;
}

.terms-hero__arc {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 80px;
  border-radius: var(--radius-semicircle);
  background-color: var(--color-copper-muted);
  opacity: 0.85;
  transform: translate(-40px, -40px);
}

.terms-hero__content {
  position: relative;
  max-width: 62ch;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
}

.terms-hero__effective {
  margin-block-end: 0;
}

.terms-hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-block-end: var(--space-8);
}

.terms-hero__intro {
  margin-block-end: 0;
}

.terms-hero__supporting {
  margin-block-end: 0;
  color: var(--color-sandstone-warm);
}

.terms-hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(244, 237, 225, 0.2);
}

/* Sections */
.terms-section {
  padding: var(--space-64) var(--container-padding-mobile);
}

.terms-section__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.terms-section__heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.terms-section__heading-row .chip-motif {
  width: 32px;
  height: 32px;
}

.terms-section__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 500;
  text-transform: uppercase;
  margin-block-end: 0;
  color: inherit;
}

.terms-section__copy {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  align-items: flex-start;
}

.terms-section__copy p,
.terms-section__copy ul {
  margin-block-end: 0;
}

.terms-section__subtitle {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-tracking);
  font-weight: 500;
  text-transform: uppercase;
  margin-block-end: 0;
  color: inherit;
}

.terms-list {
  margin-block-end: 0;
}

.terms-list > li {
  margin-block-end: var(--space-8);
}

.terms-list > li:last-child {
  margin-block-end: 0;
}

.terms-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(14, 12, 11, 0.3);
}

/* Age callout */
.terms-age-callout {
  width: 100%;
  max-width: 70ch;
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.terms-age-callout__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-tracking);
  font-weight: 500;
  text-transform: uppercase;
  margin-block-end: 0;
  color: var(--color-parchment);
}

.terms-age-callout__text {
  margin-block-end: 0;
  color: var(--color-parchment);
}

/* Contact block */
.terms-contact-block {
  width: 100%;
  max-width: 70ch;
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.terms-contact-block__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-tracking);
  font-weight: 500;
  text-transform: uppercase;
  margin-block-end: 0;
  color: var(--color-parchment);
}

.terms-contact-block__text {
  margin-block-end: 0;
  color: var(--color-parchment);
}

.terms-contact-block__address {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-style: normal;
  color: var(--color-parchment);
}

.terms-contact-block__address a {
  color: var(--color-parchment);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-contact-block__address a:hover {
  color: var(--color-copper-muted);
}

.terms-contact-block__address a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Surface-specific text colors */
.surface-eucalyptus-deep .terms-section__title,
.surface-eucalyptus-mid .terms-section__title,
.surface-burgundy-dark .terms-section__title {
  color: var(--color-parchment);
}

.surface-sandstone-warm .terms-section__title {
  color: var(--color-charcoal);
}

.surface-eucalyptus-deep .terms-section__copy,
.surface-eucalyptus-mid .terms-section__copy,
.surface-burgundy-dark .terms-section__copy {
  color: var(--color-parchment);
}

.surface-sandstone-warm .terms-section__copy {
  color: var(--color-charcoal);
}

.surface-eucalyptus-deep .terms-section__subtitle,
.surface-eucalyptus-mid .terms-section__subtitle,
.surface-burgundy-dark .terms-section__subtitle {
  color: var(--color-parchment);
}

.surface-sandstone-warm .terms-section__subtitle {
  color: var(--color-charcoal);
}

.surface-eucalyptus-deep .terms-list > li,
.surface-eucalyptus-mid .terms-list > li,
.surface-burgundy-dark .terms-list > li {
  color: var(--color-parchment);
}

.surface-sandstone-warm .terms-list > li {
  color: var(--color-charcoal);
}

.surface-eucalyptus-deep .terms-divider,
.surface-eucalyptus-mid .terms-divider,
.surface-burgundy-dark .terms-divider {
  background-color: rgba(244, 237, 225, 0.2);
}

.surface-sandstone-warm .terms-divider {
  background-color: rgba(14, 12, 11, 0.3);
}

/* Tablet */
@media (min-width: 768px) {
  .terms-hero {
    padding: var(--space-128) var(--container-padding-desktop) var(--space-96);
  }

  .terms-section {
    padding: var(--space-96) var(--container-padding-desktop);
  }

  .terms-section__inner {
    gap: var(--space-64);
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .terms-hero {
    padding: var(--space-40) var(--container-padding-mobile) var(--space-40);
  }

  .terms-hero__arc {
    width: 120px;
    height: 60px;
    transform: translate(-30px, -30px);
  }

  .terms-hero__title {
    font-size: 2.5rem;
  }

  .terms-section {
    padding: var(--space-40) var(--container-padding-mobile);
  }

  .terms-section__inner {
    gap: var(--space-24);
  }

  .terms-section__heading-row {
    gap: var(--space-8);
  }

  .terms-section__heading-row .chip-motif {
    width: 24px;
    height: 24px;
  }

  .terms-section__title {
    font-size: 2rem;
  }

  .terms-age-callout,
  .terms-contact-block {
    padding: var(--space-24);
  }

  .terms-age-callout__text,
  .terms-contact-block__text {
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-hero__arc {
    transition: none;
  }
}
