/* ==========================================================================
   MASSTREK — Terms & Conditions page
   ========================================================================== */

.terms-hero {
  background-image: url('../images/term-bg.jpg');
  --page-hero-overlay: linear-gradient(100deg, rgba(2, 19, 43, 0.88) 0%, rgba(2, 19, 43, 0.72) 32%, rgba(2, 19, 43, 0.35) 58%, rgba(2, 19, 43, 0.05) 82%);
}

.terms-hero .page-hero__inner {
  max-width: 660px;
}

.terms-hero .page-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(177deg, #D3A45A 11.73%, #FFFFFF 50%, #D3A45A 88.27%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.82;
}

.terms-hero .page-hero__eyebrow-dash {
  background: var(--color-gold-1);
}

.terms-hero .page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(2.25rem, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(161deg, #FFFFFF 10.69%, #FFFFFF 46.43%, #D3A45A 89.31%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terms-hero__content {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 24px;
}

.terms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.terms-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 8px;
}

.terms-hero__meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(211, 164, 90, 0.22);
  color: var(--color-gold-1);
}

.terms-hero__meta-icon svg {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   What Our Community Says — intro + contents nav + term cards
   ========================================================================== */

.terms-section {
  background: var(--color-white);
  padding-block: 96px;
}

.terms-intro {
  max-width: 640px;
  margin-bottom: 56px;
}

.terms-intro__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(11, 33, 64, 0.65);
  margin-top: 16px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.terms-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: linear-gradient(165.43deg, #FFFFFF 14.41%, #F4F7FC 85.59%);
  box-shadow: 0px 20px 50px -30px rgba(11, 33, 64, 0.24);
  border-radius: 20px;
  padding: 24px;
}

.terms-toc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #0B2140;
  margin-bottom: 16px;
}

.terms-toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.terms-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  color: rgba(11, 33, 64, 0.65);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.terms-toc__link:hover {
  background: rgba(11, 33, 64, 0.05);
  color: #0B2140;
}

.terms-toc__num {
  flex-shrink: 0;
  width: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: rgba(11, 33, 64, 0.35);
}

.terms-toc__dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(211, 164, 90, 0.18);
  color: var(--color-gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.terms-toc__dot svg {
  width: 8px;
  height: 8px;
}

.terms-toc__note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(11, 33, 64, 0.5);
  padding-top: 16px;
  border-top: 1px solid rgba(11, 33, 64, 0.08);
  margin-bottom: 16px;
}

.terms-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.term-card {
  background: linear-gradient(165.43deg, #FFFFFF 14.41%, #F4F7FC 85.59%);
  box-shadow: 0px 20px 50px -30px rgba(11, 33, 64, 0.24);
  border-radius: 20px;
  padding: 32px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.term-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.term-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-navy);
}

.term-card__icon img {
  width: 20px;
  height: 20px;
}

.term-card__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.term-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  color: #0B2140;
}

.term-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  color: rgba(11, 33, 64, 0.55);
  background: rgba(11, 33, 64, 0.06);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.term-tag--important {
  color: #A5762F;
  background: rgba(211, 164, 90, 0.16);
}

.term-tag--important svg {
  width: 10px;
  height: 10px;
}

.term-card__num {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: rgba(11, 33, 64, 0.3);
  margin: 8px 0 16px 60px;
}

.term-card__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.65;
  color: #0B2140AD;
}

.term-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.term-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(11, 33, 64, 0.7);
}

.term-card__list svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold-1);
}

/* ==========================================================================
   Platform Disclaimer — dark card, extends the .disclaimer component
   already defined in style.css (Home page) with an icon tile + 2nd button.
   ========================================================================== */

.disclaimer--terms {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.disclaimer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.disclaimer__icon img {
  width: 18px;
  height: 18px;
}

.disclaimer--terms .disclaimer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Closing acceptance bar
   ========================================================================== */

.terms-accept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(165.43deg, #FFFFFF 14.41%, #F4F7FC 85.59%);
  box-shadow: 0px 20px 50px -30px rgba(11, 33, 64, 0.24);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 32px;
}

.terms-accept__info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.terms-accept__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-navy);
}

.terms-accept__icon img {
  width: 18px;
  height: 18px;
}

.terms-accept__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #0B2140;
  margin-bottom: 2px;
}

.terms-accept__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  color: rgba(11, 33, 64, 0.55);
}

.terms-accept__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .terms-section {
    padding-block: 64px;
  }

  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-toc {
    position: static;
  }

  .term-card {
    padding: 24px;
  }

  .term-card__num {
    margin-left: 0;
  }

  .disclaimer--terms {
    flex-direction: column;
  }

  .terms-accept {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .terms-hero__meta-item {
    font-size: 12px;
  }

  .term-card__head {
    flex-wrap: wrap;
  }
}
