/* Shared styles for usejama.com content pages (privacy, terms, support, join). */
:root {
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f9fafb;
  --warn-bg: #fffbeb;
  --warn-line: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --body: #d1d5db;
    --muted: #9ca3af;
    --line: #374151;
    --surface: #111827;
    --page: #0b1220;
    --teal-50: #0f2a2a;
    --teal-100: #134e4a;
    --warn-bg: #2a2110;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 16px/1.65 'General Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

h1, h2, h3 { font-family: 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif; color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--teal-600); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .inner, .site-footer .inner, main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.5rem 'Cabinet Grotesk', system-ui, sans-serif; }
.brand svg { width: 34px; height: 34px; }
.site-header nav a { margin-left: 18px; text-decoration: none; color: var(--body); font-weight: 500; }
.site-header nav a:hover { color: var(--teal-600); }

main { padding-top: 2.5rem; padding-bottom: 3rem; }
.lede { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.5rem; margin: 1rem 0; }
.note { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.placeholder { background: var(--warn-bg); border-radius: 4px; padding: 0 4px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); }
.table-wrap { overflow-x: auto; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0.6rem 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details[open] summary { margin-bottom: 0.5rem; }

.btn { display: inline-block; background: var(--teal-600); color: #fff; text-decoration: none; font-weight: 600; padding: 0.8rem 1.4rem; border-radius: 12px; }
.btn.secondary { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.code { font: 700 2rem/1.2 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 0.25em; color: var(--teal-600); background: var(--teal-50); border-radius: 12px; padding: 0.75rem 1.25rem; display: inline-block; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.5rem 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 1rem; }
.site-footer a:hover { color: var(--teal-600); }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 12px; font-size: 0.9rem; }
}
