/*
  Shared styling for the four static legal pages (terms, privacy, pricing, refunds).

  These pages are deliberately plain HTML + CSS OUTSIDE the SPA build — no React, no
  Tailwind, no build step touches them. They must render for a regulator, a crawler,
  or an ad-network reviewer even if the app bundle fails entirely, which is also why
  each page repeats its own <style> import rather than depending on anything else.
*/

:root {
  --ink-900: #17181c;
  --ink-700: #3a3d44;
  --ink-500: #6b7078;
  --ink-300: #d3d6db;
  --ink-100: #f3f4f6;
  --ink-50: #fafafb;
  --brand: #0d8f7d;
  --brand-dark: #076f60;
  --warn-bg: #fff6e0;
  --warn-border: #e0a300;
  --warn-text: #6b4d00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #f3f4f6;
    --ink-700: #d3d6db;
    --ink-500: #9096a1;
    --ink-300: #33363d;
    --ink-100: #1c1e22;
    --ink-50: #131417;
    --brand: #35b6a1;
    --brand-dark: #5fd0bd;
    --warn-bg: #2e2508;
    --warn-border: #a87a00;
    --warn-text: #ffd166;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-50);
  color: var(--ink-900);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.legal-header a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.legal-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.legal-main h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.25rem;
}

.legal-updated {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 2.25rem 0 0.6rem;
  border-top: 1px solid var(--ink-300);
  padding-top: 1.25rem;
}

.legal-main h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

.legal-main p,
.legal-main li {
  color: var(--ink-700);
}

.legal-main ul,
.legal-main ol {
  padding-left: 1.3rem;
}

.legal-main li + li {
  margin-top: 0.35rem;
}

.legal-main a {
  color: var(--brand-dark);
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

table.legal-table th,
table.legal-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--ink-300);
  vertical-align: top;
}

table.legal-table th {
  background: var(--ink-100);
  font-weight: 600;
}

/*
  A value the operator must supply before this page is publishable — the entity name,
  the address, the support inbox, the domain, the governing law. Styled to be impossible
  to miss ON THE RENDERED PAGE, not only in the source: an operator previewing the site
  sees a highlighted box, not plausible-looking placeholder prose they might ship by
  accident. grep -rn "class=\"fill\"" client/public finds every one of them.
*/
.fill {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-border);
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
}

.legal-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--ink-300);
  font-size: 0.85rem;
  color: var(--ink-500);
}

.legal-footer a {
  color: inherit;
}
