/* Ai that Buy — the small amount of CSS Tailwind utilities don't cover well:
   long-form legal prose, and a couple of primitives used across pages. */

.text-balance { text-wrap: balance; }

/* Tailwind's font-weight utilities are numeric-named here (font-600 etc.) via
   the CDN's arbitrary-value support; these keep them working if the CDN's
   defaults ever shift. */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

details > summary::-webkit-details-marker { display: none; }

/* ── Long-form legal / policy prose ─────────────────────────────────────────
   Legal pages are read, not scanned, so they get a real measure, generous
   leading, and headings that separate clauses clearly enough to cite. */
.legal {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: #C7C7D1;
}
.legal > * + * { margin-top: 1.05em; }

.legal h2 {
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #FFFFFF;
  margin-top: 2.6em;
  padding-top: 1.5em;
  border-top: 1px solid #24242F;
  text-wrap: balance;
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal h3 {
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-top: 1.9em;
}

.legal strong { color: #FFFFFF; font-weight: 600; }
.legal em { font-style: italic; }

.legal a {
  color: #FF6B6B;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal a:hover { color: #FFAFAF; }

.legal ul, .legal ol { padding-left: 0; list-style: none; }
.legal li { position: relative; padding-left: 1.5rem; margin-top: 0.55em; }
.legal ul > li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #40384A;
}
.legal ol { counter-reset: legal; }
.legal ol > li { counter-increment: legal; }
.legal ol > li::before {
  content: counter(legal) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: #FF6B6B;
}

.legal code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  background: #1E1A23;
  color: #FFB3B3;
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-word;
}

/* Callout used for the "this is the important bit" paragraphs in policies. */
.legal .callout {
  background: #16161F;
  border: 1px solid #24242F;
  border-left: 3px solid #B91C1C;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-top: 1.5em;
}
.legal .callout > * + * { margin-top: 0.7em; }
.legal .callout .label {
  display: block;
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #FF6B6B;
}

/* Definition-style rows used for contact blocks and permission tables. */
.legal dl { display: grid; gap: 0; }
.legal dl > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #24242F;
}
@media (min-width: 640px) {
  .legal dl > div { grid-template-columns: 12rem 1fr; gap: 1rem; }
}
.legal dt { font-weight: 600; color: #FFFFFF; }
.legal dd { margin: 0; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid #FF3B3B;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
