/* Review-only Terms page. Keep aligned with DESIGN_SYSTEM.md. */
.terms-page {
  background:
    radial-gradient(ellipse at 76% 2%, rgba(80, 133, 239, .09), transparent 34rem),
    #f5f8fe;
  color: #172943;
}
.terms-page .site-header {
  position: relative;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #dce5f2;
}
.terms-hero {
  max-width: 1140px;
  padding-top: clamp(48px, 8vw, 92px);
  padding-bottom: 34px;
}
.terms-draft-dot {
  display: inline-block;
  inline-size: 9px;
  block-size: 9px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: #bd7416;
  box-shadow: 0 0 0 4px rgba(189,116,22,.12);
}
.terms-hero h1 {
  max-width: 880px;
  margin: 12px 0 16px;
  color: #142947;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.terms-lead {
  max-width: 880px;
  margin: 0 0 14px;
  color: #536987;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}
.terms-lead-secondary {
  max-width: 820px;
  font-size: 1rem;
}
.terms-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.terms-promise-grid article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 5px 12px;
  align-items: start;
  min-height: 102px;
  padding: 19px 20px;
  background: rgba(255,255,255,.9);
  border: 1px solid #dce5f2;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(28,53,91,.045);
}
.terms-promise-grid article > span {
  grid-row: span 2;
  color: #3262e9;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.terms-promise-grid strong {
  color: #1a3150;
  font-size: .98rem;
}
.terms-promise-grid small {
  color: #617591;
  font-size: .88rem;
  line-height: 1.5;
}
.terms-review-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 1140px;
  margin-top: 6px;
  padding: 16px 20px;
  color: #6c4b1b;
  background: #fff8e9;
  border: 1px solid #efd6a1;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
}
.terms-review-note strong { flex: 0 0 auto; color: #70480f; }
.terms-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 790px);
  align-items: start;
  justify-content: center;
  gap: 28px;
  max-width: 1140px;
  padding-top: 38px;
  padding-bottom: 72px;
}
.terms-toc {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 2px;
  padding: 17px 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid #dce5f2;
  border-radius: 16px;
}
.terms-toc .eyebrow { margin: 0 8px 8px; }
.terms-toc a {
  padding: 7px 9px;
  border-radius: 8px;
  color: #526987;
  font-size: .83rem;
  line-height: 1.35;
  text-decoration: none;
}
.terms-toc a:hover, .terms-toc a:focus-visible {
  color: #164fce;
  background: #edf3ff;
}
.terms-document {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(28,53,91,.055);
}
.terms-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-bottom: 18px;
  color: #5b697e;
  border-bottom: 1px solid #e5ebf4;
  font-size: .82rem;
}
.terms-document section {
  padding: 27px 0 22px;
  border-bottom: 1px solid #e8edf5;
  scroll-margin-top: 20px;
}
.terms-document section:last-of-type { border-bottom: 0; }
.terms-document h2 {
  margin: 0 0 12px;
  color: #172e4d;
  font-size: clamp(1.13rem, 2vw, 1.34rem);
  letter-spacing: -.02em;
}
.terms-document p, .terms-document li {
  color: #4d607b;
  font-size: .96rem;
  line-height: 1.72;
}
.terms-document p { margin: 0 0 12px; }
.terms-document p:last-child { margin-bottom: 0; }
.terms-document a {
  color: #1759d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.terms-counsel-note {
  margin-top: 20px;
  padding: 20px 22px;
  background: #f3f6fc;
  border: 1px solid #dce5f2;
  border-left: 4px solid #3262e9;
  border-radius: 12px;
}
.terms-counsel-note strong { color: #1b3354; }
.terms-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 18px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid #dce5f2;
}
.terms-footer .brand-logo { max-width: 168px; height: auto; }
.terms-footer p { margin: 0; color: #57687f; }
.terms-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  grid-column: 3;
}
.terms-footer nav a { color: #526987; font-size: .88rem; text-decoration: none; }
.terms-footer > span {
  grid-column: 1 / -1;
  color: #5c697e;
  font-size: .77rem;
  letter-spacing: .08em;
}
@media (max-width: 850px) {
  .terms-layout { grid-template-columns: 1fr; gap: 14px; }
  .terms-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .terms-toc .eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .terms-hero { padding-top: 38px; }
  .terms-promise-grid { grid-template-columns: 1fr; }
  .terms-promise-grid article { min-height: 86px; }
  .terms-review-note { display: grid; gap: 4px; }
  .terms-toc { grid-template-columns: 1fr 1fr; }
  .terms-document { padding: 20px 18px; border-radius: 16px; }
  .terms-document p, .terms-document li { font-size: .93rem; }
  .terms-footer { grid-template-columns: 1fr; }
  .terms-footer nav { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .terms-page *, .terms-page *::before, .terms-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
