/* JustScribe — shared stylesheet for landing + legal pages.
   No build step, no external fonts: system font stack only. */

:root {
  --bg: #fafafa;
  --bg-raised: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #e5e5e7;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-raised: #161618;
    --text: #f5f5f7;
    --text-muted: #9a9a9e;
    --border: #2c2c2e;
    --accent: #2997ff;
    --accent-ink: #0b0b0c;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---- Top bar (shared) ---- */

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.topbar nav a {
  color: var(--text-muted);
  margin-left: 18px;
  font-size: 0.95rem;
}

.topbar nav a:first-child {
  margin-left: 0;
}

.back-link {
  padding: 24px 0 0;
}

.back-link a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Hero ---- */

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 16px;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ---- Buttons ---- */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* ---- Sections ---- */

section {
  padding: 48px 0;
}

section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 12px;
}

section > .wrap > .lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

.privacy-highlight {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.privacy-highlight .card {
  background: var(--bg);
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.cta {
  text-align: center;
}

/* ---- Footer (shared) ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
}

footer .fine {
  margin-top: 8px;
  font-size: 0.85rem;
}

/* ---- Legal pages ---- */

.legal {
  padding: 8px 0 56px;
}

.legal h1 {
  font-size: 2rem;
  margin: 8px 0 4px;
}

.legal .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 36px;
}

.legal section {
  padding: 0 0 28px;
}

.legal section h2 {
  font-size: 1.15rem;
  text-align: left;
  margin: 0 0 10px;
}

.legal section p,
.legal section li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--accent);
}

/* ---- Support form ---- */

.field {
  margin-bottom: 18px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

