/*
 * Shared styling for the three hosted pages (help, privacy, terms).
 *
 * Deliberately plain CSS with no build step and no external requests — no
 * webfonts, no CDN, no analytics. Two reasons: the help page is embedded in
 * an iframe on *.monday.com, and the security questionnaire claims this app
 * and its pages make no third-party network calls. That claim has to stay
 * literally true, so the font stack is system-only.
 *
 * Colours approximate monday's own palette so the embedded help page doesn't
 * look bolted on, and follow the host's light/dark preference.
 */

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --border: #d0d4e4;
  --text: #323338;
  --muted: #676879;
  --accent: #0073ea;
  --accent-soft: #e6f1fd;
  --good: #00854d;
  --bad: #d83a52;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181b34;
    --surface: #20223f;
    --border: #33355a;
    --text: #d5d8df;
    --muted: #9699a6;
    --accent: #5599ff;
    --accent-soft: #22315a;
    --good: #33d391;
    --bad: #ff6b7d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 24px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 18px;
  margin: 36px 0 10px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 15px;
  margin: 22px 0 6px;
}

p,
li {
  color: var(--text);
}

.lede {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 28px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}

.card.accent {
  background: var(--accent-soft);
  border-color: transparent;
}

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 40px;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps > li strong {
  display: block;
  margin-bottom: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
