/* =========================================================
   TERMS & CONDITIONS PAGE (Phase 4.7.1)
   Uses the global design tokens from style.css — no new
   design system, no external resources.
========================================================= */

/* =========================
   HERO
========================= */
.terms-hero {
  position: relative;
  padding: 7rem 1.5rem 3.5rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.terms-hero__glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}

.terms-hero__glow--primary {
  width: 30rem;
  height: 30rem;
  top: -12rem;
  right: -8rem;
  background: radial-gradient(circle, oklch(62% .22 25 / .35), transparent 70%);
}

.terms-hero__glow--accent {
  width: 24rem;
  height: 24rem;
  bottom: -14rem;
  left: -6rem;
  background: radial-gradient(circle, oklch(78% .16 70 / .18), transparent 70%);
}

.terms-hero__content {
  position: relative;
  max-width: var(--container-7xl);
  margin-inline: auto;
}

/* Center the breadcrumb inside the legal hero only (scoped, so the
   shared .svc-breadcrumbs styling on service pages is untouched). */
.terms-hero .svc-breadcrumbs__list {
  justify-content: center;
}

.terms-hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--foreground);
  text-align: center;
}

.terms-hero__title-grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terms-hero__desc {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 42rem;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
  text-align: center;
}

/* =========================
   LEGAL CONTENT
========================= */
.terms-body {
  padding-block: 3.5rem 6rem;
}

/* Readable legal measure: never spans the full viewport width. */
.terms-body__inner {
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  font-size: var(--text-base);
  line-height: 1.75;
  color: color-mix(in oklab, var(--foreground) 88%, transparent);
}

.terms-body__updated {
  display: inline-block;
  margin-bottom: 2rem;
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.terms-body__inner h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: var(--text-2xl);
  color: var(--foreground);
  scroll-margin-top: 6rem;
}

.terms-body__inner p {
  margin-bottom: 1rem;
}

.terms-body__inner strong {
  color: var(--foreground);
  font-weight: var(--font-weight-semibold);
}

.terms-body__inner ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.terms-body__inner li {
  margin-bottom: .375rem;
}

/* Inline links: keyboard-accessible with a visible focus state. */
.terms-body__inner a {
  color: var(--primary-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.terms-body__inner a:hover {
  color: var(--accent);
}

.terms-body__inner a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================
   COOKIE SUMMARY TABLE (Phase 4.7.4)
   Accessible table used by /cookie-policy/; horizontal scroll
   wrapper prevents overflow on small screens.
========================= */
.terms-table-wrap {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
}

.terms-table th,
.terms-table td {
  padding: .625rem .75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.terms-table th {
  background: var(--surface);
  color: var(--foreground);
  font-weight: var(--font-weight-semibold);
}

.terms-table td {
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 640px) {
  .terms-hero {
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .terms-body {
    padding-block: 2.5rem 4rem;
  }

  .terms-body__inner {
    padding-inline: 1.25rem;
  }

  .terms-body__inner h2 {
    font-size: var(--text-xl);
  }
}