.terms-page {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f6f8ff 52%, #fdfdff 100%);
}

.terms-page .nav-links a,
.terms-page .terms-overview-meta,
.terms-page .terms-support-card p,
.terms-page .terms-contact-card p {
  color: var(--muted);
}

.terms-page .nav-links a:hover,
.terms-page .nav-links a:focus-visible {
  color: var(--text);
}

.terms-hero {
  padding-top: 58px;
}

.terms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
}

.terms-hero-copy h1 {
  margin: 18px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.terms-hero-visual,
.terms-overview-card,
.terms-sidebar,
.terms-mobile-toc,
.terms-document,
.terms-support-card,
.terms-contact-card {
  border-radius: 28px;
}

.terms-hero-visual {
  padding: 16px;
  overflow: hidden;
}

.terms-hero-visual img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.terms-sidebar {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.terms-sidebar-inner h2 {
  margin: 4px 0 18px;
  font-size: 1rem;
  color: var(--text);
}

.terms-toc {
  display: grid;
  gap: 6px;
}

.terms-toc a,
.terms-mobile-links a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.terms-toc a:hover,
.terms-toc a:focus-visible,
.terms-mobile-links a:hover,
.terms-mobile-links a:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  transform: translateX(2px);
}

.terms-toc a.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.12));
  color: var(--text);
}

.terms-mobile-toc {
  display: none;
  margin-bottom: 18px;
  padding: 18px;
}

.terms-mobile-toc summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.terms-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.terms-mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.terms-overview-card,
.terms-document,
.terms-contact-card {
  padding: 28px;
}

.terms-overview-card {
  margin-bottom: 20px;
}

.terms-overview-card h2,
.terms-document-header h2,
.terms-contact-card h2 {
  margin: 14px 0 12px;
  font-family: "Poppins", sans-serif;
  line-height: 1.08;
}

.terms-document-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.terms-kicker {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
}

.terms-placeholder-shell {
  padding-top: 22px;
}

.terms-placeholder {
  margin: 0;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(239, 244, 255, 0.82), rgba(255, 255, 255, 0.94));
  border: 1px dashed rgba(37, 99, 235, 0.24);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
  word-break: break-word;
}

.terms-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.terms-support-card {
  padding: 24px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.terms-support-card:hover,
.terms-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.terms-support-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.terms-contact-card {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1080px) {
  .terms-hero-grid,
  .terms-layout,
  .terms-contact-card {
    grid-template-columns: 1fr;
  }

  .terms-layout {
    display: block;
  }

  .terms-sidebar {
    display: none;
  }

  .terms-mobile-toc {
    display: block;
  }

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

  .terms-contact-card {
    display: grid;
  }
}

@media (max-width: 760px) {
  .terms-hero {
    padding-top: 36px;
  }

  .terms-overview-card,
  .terms-document,
  .terms-support-card,
  .terms-contact-card {
    padding: 20px;
  }

  .terms-hero-visual {
    padding: 12px;
  }

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

  .terms-contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .terms-contact-card h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .terms-hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding-top: 24px;
  }

  .terms-overview-card,
  .terms-document,
  .terms-support-card,
  .terms-contact-card {
    padding: 16px;
  }

  .terms-document h3 {
    font-size: 1.15rem;
  }

  .terms-document p,
  .terms-document li {
    font-size: 0.92rem;
  }

  .terms-mobile-toc select {
    padding: 12px 14px;
    font-size: 0.92rem;
  }
}
