.terms-rendered {
  margin-top: 50px!important;
  max-height:70vh;
}

.terms-rendered .terms-container {
  --terms-text: #203243;
  --terms-muted: #56697c;
  --terms-line: rgba(32, 50, 67, 0.12);
  --terms-brand: #0b8fe8;
  --terms-brand-dark: #0c5f95;
  --terms-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98));
  max-width: 980px;
  margin: 0 auto;
  color: var(--terms-text);
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}

.terms-rendered .terms-card {
  background: var(--terms-surface);
  border: 1px solid var(--terms-line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(8, 22, 36, 0.08);
  overflow: hidden;
}

.terms-rendered .terms-hero {
  padding: 34px 34px 24px;
  background:
    radial-gradient(circle at top right, rgba(11, 143, 232, 0.14), transparent 34%),
    radial-gradient(circle at left center, rgba(11, 143, 232, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.98));
  border-bottom: 1px solid var(--terms-line);
}

.terms-rendered .terms-section-main-title {
  margin: 0;
  font-family: SigmaSerifHead, "Barlow", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  color: #101820;
}

.terms-rendered .terms-lead {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--terms-muted);
  font-size: 1rem;
}

.terms-rendered .terms-grid {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.terms-rendered .terms-section {
  padding: 22px 24px;
  border: 1px solid var(--terms-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.terms-rendered .terms-section-title {
  margin: 0 0 12px;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: 1.28rem;
  line-height: 1.2;
  color: #101820;
}

.terms-rendered .terms-paragraph {
  margin: 0 0 10px;
  color: var(--terms-text);
}

.terms-rendered .terms-paragraph:last-child {
  margin-bottom: 0;
}

.terms-rendered .terms-link {
  color: var(--terms-brand-dark);
  text-decoration: underline;
  text-decoration-color: rgba(11, 143, 232, 0.38);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.terms-rendered .terms-link:hover {
  color: var(--terms-brand);
  text-decoration-color: rgba(11, 143, 232, 0.82);
}

.terms-rendered .terms-footer {
  background: transparent;
  padding: 0 24px 24px;
  color: var(--terms-text);
}

.terms-rendered .terms-footer-note {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--terms-line);
  color: var(--terms-muted);
}

@media (max-width: 640px) {
  .terms-rendered {
    padding-top: 32px;
  }

  .terms-rendered .terms-card {
    border-radius: 20px;
  }

  .terms-rendered .terms-hero {
    padding: 24px 20px 18px;
  }

  .terms-rendered .terms-grid {
    padding: 16px;
    gap: 14px;
  }

  .terms-rendered .terms-section {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .terms-rendered .terms-footer {
    padding: 0 16px 16px;
  }
}
