/* ==========================================================================
   Terms Page – Gather Avenue
   Redesigned mobile-first CSS for current terms HTML
   ========================================================================== */

.terms {
  position: relative;
  max-width: 1040px;
}

/* ==========================================================================
   TERMS WRAPPER / HEADER
   ========================================================================== */

.terms::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(47, 47, 228, 0.12);
  filter: blur(40px);
  pointer-events: none;
}

.terms__header {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  text-align: left;
  margin-bottom: var(--space-8);
}

.terms__header .section__title {
  max-width: 56rem;
  margin-bottom: var(--space-4);
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.terms__header .section__subtitle {
  max-width: 42rem;
  color: var(--color-gray-100);
  font-size: var(--font-size-lg);
}

/* ==========================================================================
   TERMS CONTENT CARD
   ========================================================================== */

.terms__content {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-10);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 47, 228, 0.16), transparent 38%),
    radial-gradient(
      circle at 100% 100%,
      rgba(206, 38, 38, 0.1),
      transparent 38%
    ),
    rgba(5, 8, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow: var(--shadow-strong);
}

.terms__content::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f2fe4, #ce2626);
}

.terms__content::after {
  content: '§';
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(9rem, 28vw, 18rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.028);
  pointer-events: none;
}

.terms__content .card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
}

.terms__content h2 {
  position: relative;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  padding-left: 1.05rem;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.terms__content h2:first-child {
  margin-top: 0;
}

.terms__content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.34rem;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f2fe4, #ce2626);
}

.terms__content p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.terms__content p + h2 {
  margin-top: var(--space-7);
}

.terms__content strong {
  color: var(--color-gray-100);
}

.terms__content a {
  color: var(--color-primary-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(47, 47, 228, 0.42);
  text-underline-offset: 0.2em;
}

.terms__content a:hover,
.terms__content a:focus-visible {
  color: #ffffff;
  text-decoration-color: #ffffff;
  opacity: 1;
}

/* ==========================================================================
   TERMS CTA
   ========================================================================== */

.terms__cta {
  padding-top: 0;
  padding-bottom: 0;
}

.terms__cta .cta-strip {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(47, 47, 228, 0.24),
      transparent 42%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(206, 38, 38, 0.16),
      transparent 42%
    ),
    rgba(7, 11, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
}

.terms__cta .cta-strip::before {
  content: '';
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  border: 1.35rem solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.terms__cta .cta-strip__title {
  margin-bottom: var(--space-2);
  font-size: clamp(1.45rem, 5vw, 2.35rem);
}

.terms__cta .cta-strip__text {
  color: var(--color-text-muted);
}

.terms__cta .cta-strip .u-flex {
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 560px) {
  .terms {
    max-width: 100%;
  }

  .terms__header .section__subtitle {
    font-size: var(--font-size-md);
  }

  .terms__content .card__content {
    padding: var(--space-4);
  }

  .terms__content h2 {
    padding-left: 0.9rem;
  }

  .terms__cta .cta-strip .u-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .terms__cta .cta-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .terms__content .card__content {
    padding: var(--space-8);
  }

  .terms__cta .cta-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-8);
  }

  .terms__cta .cta-strip__text {
    margin-bottom: 0;
    max-width: 42rem;
  }
}
