/* Auto-Mobile — shared styles for legal/support pages.
   Palette matches the app's "Midnight Electric" theme (src/theme.ts). */

:root {
  --background: #F6FAFD;
  --surface: #FFFFFF;
  --surface-secondary: #EAF4FC;
  --text-primary: #152536;
  --text-secondary: #526477;
  --text-muted: #718096;
  --border: #C9E2F4;
  --divider: #DCE9F2;
  --primary: #246BFD;
  --primary-pressed: #0B2A45;
  --accent: #00C8FF;
  --header-bg: #071827;
  --header-bg-secondary: #0B2A45;
  --success: #15803D;
  --warning: #B45309;
  --error: #DC2626;
  --info: #0E7490;
}

* { box-sizing: border-box; }

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

/* Full-bleed, edge-to-edge — same as AppHeader.tsx's logo banner in the
   app itself (the banner image's own dark background is the header
   chrome; there's no separate bar drawn behind it). */
.header-banner {
  line-height: 0;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Matches the app's own bottom tab bar (MainTabs.tsx): white surface,
   a light divider border, inactive items in the muted nav color, the
   active item picked out in cobalt — no separate dark strip. */
.page-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 14px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.page-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin: 0 16px;
  padding-bottom: 4px;
}

.page-nav a:hover {
  color: var(--primary);
}

.page-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.updated {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 36px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

p, li {
  color: var(--text-secondary);
  font-size: 15px;
}

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

ul, ol {
  padding-left: 22px;
}

li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

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

th {
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-weight: 700;
}

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

.card.info {
  background: var(--surface-secondary);
  border-color: var(--border);
}

.card.warn {
  background: #FDF3E7;
  border-color: #F1D9B5;
}

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

/* Matches PrimaryButton.tsx: pill radius, cobalt fill, white text,
   14px vertical padding, 44px minimum touch target. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  margin-top: 8px;
}

.button:hover { background: var(--primary-pressed); }

.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}

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

footer {
  text-align: center;
  padding: 28px 24px 40px;
  color: var(--text-muted);
  font-size: 12px;
}

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

.placeholder {
  background: #FDF3E7;
  color: var(--warning);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}
