/* RoadLife site — the ONE owner of the palette, the base type, the top bar,
   page headings, the footer and the card / FAQ-accordion styles.
   Every page links this file; a page's own <style> holds only what is unique
   to that page. Change a colour here, never in a page. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:           #0c1220;   /* page background */
  --surface:      #141d33;   /* cards, strips */
  --surface-2:    #1a2440;   /* raised element inside a card */
  --rule:         #26314f;   /* hairlines and card borders */
  --text:         #c8d4e4;   /* body copy */
  --text-strong:  #e6edf7;   /* card titles, questions */
  --heading:      #ffffff;
  --muted:        #8698bc;   /* secondary copy */
  --faint:        #5c6b8c;   /* footers, fine print */
  --accent:       #00d4ff;
  --accent-dim:   #0090b0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── Top bar: the way home from every inner page ── */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Page body for text pages (privacy, terms, support, faq) ── */
.page { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; }
.page.wide { max-width: 860px; }
.page h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; line-height: 1.2; color: var(--heading); margin: 0 0 6px; }
.page h2 { font-size: 18px; font-weight: 700; color: var(--accent); margin: 32px 0 10px; }
.page p { margin: 0 0 12px; }
.page ul { padding-left: 20px; margin: 8px 0 12px; }
.page li { margin-bottom: 8px; }
.page li strong { color: var(--text-strong); }
.subtitle { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-title { font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }
.card-text { color: var(--muted); font-size: 15px; }

/* ── FAQ accordion ── */
.faq-section { margin-bottom: 44px; }
.faq-section h2 {
  font-size: 20px;
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.faq-item {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-strong);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--surface-2); }
.faq-question .arrow {
  font-size: 12px;
  color: var(--accent);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 1400px; padding: 0 20px 18px; }
.faq-answer p, .faq-answer ul { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.faq-answer ul { padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong, .faq-answer em { color: var(--text-strong); }
.faq-answer p:last-child { margin-bottom: 0; }

.contact-box { text-align: center; padding: 32px 24px; margin-top: 40px; }
.contact-box h3 { color: var(--heading); font-size: 19px; margin: 0 0 6px; }
.contact-box p { color: var(--muted); margin: 0 0 14px; }
.contact-box a { font-weight: 600; }

/* ── Footer: identical on every page ── */
.site-footer {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--font);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 18px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--faint); }

@media (max-width: 480px) {
  .page { padding: 28px 16px 16px; }
  .topbar-inner { padding: 0 16px; }
  .faq-question { padding: 14px 16px; font-size: 15px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; }
  .site-footer { padding: 32px 16px 40px; }
  .footer-links { gap: 4px 18px; }
  .footer-links a { font-size: 13px; }
}
