/* ThinkChat v2 — document pages (About, Privacy, Terms, Solutions, SEO landing pages).
   Tokens, nav and footer come from v2.css. Class names match includes/terms_document.php. */

.terms-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px);
}
.terms-page > .orb-peach { width: 420px; height: 420px; left: -180px; top: 40px; }
.terms-page > .orb-lavender { width: 480px; height: 480px; right: -200px; top: -120px; }

.terms-doc {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 60px) clamp(36px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.terms-doc + .terms-doc { margin-top: 32px; }
.terms-doc.wide { max-width: none; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-hero h1, .terms-hero h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.terms-hero .lead { max-width: 64ch; }
.terms-hero .lead + .lead { margin-top: 12px; }

.effective {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--lavender);
  color: var(--violet);
  font-size: 12.5px;
  font-weight: 700;
}

.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.terms-body {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.terms-section { padding: 6px 0 26px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.terms-section + .terms-section { padding-top: 26px; border-top: 1px solid var(--line); }
.terms-section h2, .terms-section h3 { margin: 0 0 14px; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.035em; line-height: 1.25; }

.terms-body p, .terms-body li { font-size: 15px; line-height: 1.75; }
.terms-body p { margin: 0 0 14px; }
.terms-body a { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.clause { display: inline-block; margin-right: 8px; color: var(--coral-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.terms-body ul { margin: 0 0 18px; padding: 0; list-style: none; }
.terms-body ul li { position: relative; padding: 5px 0 5px 22px; }
.terms-body ul li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.meta-line span {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Numbered steps (SEO landing pages) ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ivory);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--peach);
  color: var(--coral-ink);
  font-size: 13px;
  font-weight: 800;
}

.doc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--lavender);
}
.doc-cta p { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.terms-body .doc-cta a.btn { color: var(--aubergine); text-decoration: none; }

/* ---------- Solutions grid ---------- */

.solutions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.terms-body .solutions-grid a {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ivory);
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.terms-body .solutions-grid a:hover { transform: translateY(-2px); border-color: var(--lavender-deep); box-shadow: var(--shadow-soft); }
.solutions-grid h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.03em; }
.solutions-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 720px) {
  .steps, .solutions-grid { grid-template-columns: 1fr; }
  .doc-actions .btn { width: 100%; }
}

@media print {
  .announce, .nav, .foot, .orb { display: none; }
  .terms-page { padding: 0; }
  .terms-doc { border: 0; box-shadow: none; padding: 0; }
  .terms-body { margin: 0; padding: 0; border: 0; }
}
