/*
 * legal.css — shared styling for terms.html and privacy.html.
 *
 * These two pages are plain prose and share one stylesheet rather than each
 * carrying an inline copy. Deliberately NOT Tailwind-via-CDN like the
 * marketing pages: a legal document that renders unstyled because a CDN is
 * blocked is still a legal document, and Paddle's reviewer must be able to
 * read it. No build step, no external font, no JS.
 *
 * The colour values are copied from the landing page tokens so the pages look
 * like the same product. If the brand palette changes, change it here too --
 * these are literals on purpose, because the alternative is loading the whole
 * Tailwind config to style a page of text.
 */

:root {
  --surface: #121416;
  --surface-container: #1e2022;
  --surface-container-low: #1a1c1e;
  --on-surface: #e2e2e5;
  --on-surface-variant: #c4c6cd;
  --muted: #8e9197;
  --primary: #8aceff;
  --secondary: #e7c433;
  --outline: #43474c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

header.bar {
  border-bottom: 1px solid rgba(142, 145, 151, 0.15);
  background: rgba(18, 20, 22, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.bar .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header.bar a.brand {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

header.bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}

header.bar nav a:hover { color: var(--primary); }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

h1 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 8px;
}

p.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(142, 145, 151, 0.15);
  scroll-margin-top: 80px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--on-surface);
}

p, li { color: var(--on-surface-variant); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }

a { color: var(--primary); }

strong { color: var(--on-surface); font-weight: 600; }

/*
 * A visible, deliberately ugly marker for information only Phil can supply
 * (registered address, support address, entity details Paddle asks for at
 * onboarding). It must be impossible to miss in a rendered page -- a
 * placeholder that looks like body text ships to a payment reviewer.
 * scripts/check-legal-placeholders.mjs counts these and is a launch gate.
 */
.todo {
  background: #4a3a00;
  color: #ffe680;
  border: 1px dashed var(--secondary);
  border-radius: 4px;
  padding: 1px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.callout {
  background: var(--surface-container);
  border: 1px solid var(--outline);
  border-left: 3px solid var(--secondary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(142, 145, 151, 0.15);
  vertical-align: top;
}

th {
  color: var(--on-surface);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td { color: var(--on-surface-variant); }

footer.legal-footer {
  border-top: 1px solid rgba(142, 145, 151, 0.15);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

footer.legal-footer a { margin-right: 16px; }

@media print {
  body { background: #fff; color: #000; }
  header.bar { display: none; }
  p, li, td { color: #222; }
  h1, h2, h3, strong { color: #000; }
  .todo { background: #ffd; color: #000; }
}
