/* Vendo legal site — one stylesheet for every page.
   Brand blue #167CEC, matching the app's adaptive-icon background. */

:root {
  --brand: #167CEC;
  --brand-dark: #0F5FB8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --tint: #eff6ff;
  --tint-border: #bfdbfe;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #713f12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --border: #1e293b;
    --ink: #f1f5f9;
    --body: #cbd5e1;
    --muted: #64748b;
    --tint: #10243f;
    --tint-border: #1d4ed8;
    --warn-bg: #251c06;
    --warn-border: #713f12;
    --warn-ink: #fde68a;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header { background: var(--brand); padding: 28px 24px; }
header .inner { max-width: 720px; margin: 0 auto; }
header a.back {
  color: rgba(255, 255, 255, 0.78); font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
header a.back:hover { color: #fff; }
header a.back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
header h1 { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
header p { color: rgba(255, 255, 255, 0.72); font-size: 13px; margin-top: 6px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 720px; margin: 0 auto; padding: 36px 24px 72px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; margin-bottom: 20px;
}
.card.compact { padding: 20px 24px; }

.section { margin-bottom: 30px; }
.section:last-child { margin-bottom: 0; }
.section h2 {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.2px;
}
.section h3 {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin: 16px 0 6px;
}
p { font-size: 14px; color: var(--body); line-height: 1.75; margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

ul { list-style: none; margin-bottom: 10px; }
ul li {
  font-size: 14px; color: var(--body); line-height: 1.75;
  padding-left: 20px; position: relative; margin-bottom: 5px;
}
ul li::before { content: '\2022'; position: absolute; left: 4px; color: var(--muted); }

/* ── Numbered steps ──────────────────────────────────────────────────────── */
ol.steps { list-style: none; counter-reset: step; margin: 4px 0 0; }
ol.steps li {
  counter-increment: step; position: relative; padding-left: 44px;
  margin-bottom: 20px; font-size: 15px; color: var(--body); line-height: 1.7;
}
ol.steps li:last-child { margin-bottom: 0; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 10px; background: var(--brand);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td {
  text-align: left; font-size: 14px; padding: 10px 12px;
  border-bottom: 1px solid var(--border); color: var(--body);
  line-height: 1.6; vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); font-weight: 600;
}
td:first-child { color: var(--ink); font-weight: 600; width: 42%; }

/* ── Bits ────────────────────────────────────────────────────────────────── */
a { color: var(--brand); }
a.mail {
  display: inline-block; background: var(--tint); border: 1px solid var(--tint-border);
  border-radius: 8px; padding: 2px 8px; font-weight: 600; text-decoration: none;
}
.note {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: 12px; padding: 16px 20px;
}
.note p { color: var(--warn-ink); margin: 0; }
.note strong { color: var(--warn-ink); }

/* ── Index cards ─────────────────────────────────────────────────────────── */
.hero { margin-bottom: 26px; }
.hero h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 8px; }
.hero p { font-size: 15px; color: var(--body); }
.cards { display: flex; flex-direction: column; gap: 14px; }
a.doc {
  display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s;
}
a.doc:hover { box-shadow: 0 6px 26px rgba(15, 23, 42, 0.08); transform: translateY(-1px); }
.doc-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; color: var(--ink); }
.doc p { font-size: 13px; color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 28px 24px 40px;
  font-size: 12px; color: var(--muted); line-height: 1.9;
}
footer a { color: var(--muted); }

@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  header h1 { font-size: 22px; }
  td:first-child { width: auto; }
  table, tbody, tr, td, th { display: block; }
  th { display: none; }
  td { border-bottom: none; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; display: block; }
  tr:last-child { border-bottom: none; }
}
