/* Shared stylesheet for the public legal pages (/terms, /privacy).
   Palette matches the app design references in docs/design/stitch. */

:root {
  --bg: #f4fbf3;
  --surface: #ffffff;
  --text: #161d18;
  --muted: #6c7b6f;
  --primary: #006d41;
  --rule: #dde5dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #002110;
    --surface: #0d2f1c;
    --text: #e6f2e8;
    --muted: #bbcabd;
    --primary: #48e094;
    --rule: #1f4530;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.effective-date {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.intro {
  margin: 2rem 0 0;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--primary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

.note {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

footer {
  max-width: 44rem;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.5rem;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.625rem;
  }

  header {
    padding-top: 2rem;
  }
}
