body.terms-page {
  min-height: 100%;
  width: 100%;
  margin-left: 0;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(182, 141, 64, 0.12), transparent 28%),
    linear-gradient(180deg, #f3f7fb 0%, #e9eef4 100%);
}

.terms-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(46, 64, 82, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.terms-brand,
.terms-nav a {
  color: var(--primary-color);
  text-decoration: none;
}

.terms-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.terms-brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.terms-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.terms-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(46, 64, 82, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
}

.terms-nav a:hover,
.terms-nav a:focus-visible {
  border-color: rgba(46, 64, 82, 0.26);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.terms-shell {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) 0 72px;
}

.terms-hero {
  padding-bottom: 30px;
}

.terms-kicker {
  margin: 0 0 12px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  line-height: 0.96;
  font-weight: 800;
}

.terms-updated {
  margin: 18px 0 0;
  color: #536273;
  font-size: 0.95rem;
  font-weight: 700;
}

.terms-lead {
  max-width: 68ch;
  margin: 20px 0 0;
  color: #334155;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.terms-section {
  padding: 30px 0;
  border-top: 1px solid rgba(46, 64, 82, 0.13);
}

.terms-section h2 {
  margin: 0 0 14px;
  color: var(--primary-color);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.terms-section p {
  margin: 0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.78;
}

.terms-section p + p {
  margin-top: 12px;
}

.terms-section a {
  color: #1f5f99;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .terms-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .terms-shell {
    width: min(100% - 28px, 920px);
    padding-top: 34px;
  }

  .terms-nav {
    width: 100%;
  }

  .terms-nav a {
    flex: 1 1 128px;
  }
}
