/* Terms of service + privacy policy, matched to the live site
   (/terms-of-service, /privacy-policy). Shared by both pages. */

/* These pages' footer has no CTA band. */
.no-cta .cta-band { display: none; }
.no-cta .site-footer > .rule-t { border-top: 0; }

/* Live frame: side hairlines inside the 1400 column on desktop, none below 1200. */
main.frame { position: relative; border-left: 0; border-right: 0; }
main.frame::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--border-primary); border-right: 1px solid var(--border-primary); pointer-events: none; z-index: 2; }

.h1-sm { font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: .12px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 1208px column on Framer's dot fill (1.5px squares, 8px grid). Rules are
   inset shadows, so they take no layout space, as in Framer. */
.legal-page {
  padding: 0 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect x='4' y='4' width='1.5' height='1.5' fill='%23001441' fill-opacity='0.08'/%3E%3C/svg%3E");
}
.legal-col {
  display: grid; grid-template-columns: 1fr 2fr;
  background: var(--bg-primary); box-shadow: inset 1px 0 0 var(--border-primary), inset -1px 0 0 var(--border-primary);
}
.legal-side { min-width: 0; }
.legal-side .sticky { position: sticky; top: 68px; display: flex; flex-direction: column; gap: 32px; padding: 32px; }
.legal-side .title { display: flex; flex-direction: column; gap: 8px; }
.updated, .toc { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; }
.updated { display: flex; gap: 4px; color: var(--text-tertiary); }
.toc { display: flex; flex-direction: column; gap: 12px; color: var(--text-secondary); }
.toc a { display: flex; gap: 10px; transition: color .2s; }
.toc a:hover { color: var(--text-primary); }

.legal-body { min-width: 0; display: flex; flex-direction: column; gap: 32px; padding: 32px; box-shadow: inset 1px 0 0 var(--border-primary); }
.legal-body section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 88px; }
.legal-body p { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
/* Lists read as the paragraphs do: same size and colour, a quiet marker, and
   the lead phrase of each item in the text colour rather than heavier type. */
.legal-body ul { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.legal-body li::marker { color: var(--text-secondary); }
.legal-body li strong { font-weight: 500; color: var(--text-primary, inherit); }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  main.frame::after { display: none; }
  .legal-page { padding: 0; background: none; }
  .legal-col { grid-template-columns: 3fr 5fr; box-shadow: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  .legal-col { grid-template-columns: 1fr; }
  .legal-side .sticky { position: static; padding: 32px 20px; box-shadow: inset 0 -1px 0 var(--border-primary); }
  .toc { display: none; }
  .legal-body { padding: 20px; box-shadow: none; }
  .legal-body .h3-md { font-size: 16px; line-height: 20px; }
}
