/* Shared styling for RoadRageMap's content pages (about, privacy, terms).
 *
 * index.html deliberately keeps its own inline CSS: it is a one-off landing
 * layout (poster frame, "coming soon" badge) and nothing else reuses it.
 * These three pages are the same document shape, so they share one file
 * rather than triplicating it and drifting apart. */

* { box-sizing: border-box; }

:root {
  --rr-red: #d63329;
  --rr-yellow: #f6c518;
  --rr-green: #36a64f;
  --asphalt: #1b1d20;
  --asphalt-2: #25282c;
  --text: #f2f3f5;
  --muted: #9aa0a8;
}

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(246,197,24,.10), transparent 60%),
    radial-gradient(800px 600px at 85% 100%, rgba(214,51,41,.12), transparent 60%),
    linear-gradient(180deg, var(--asphalt-2) 0%, var(--asphalt) 60%, #161719 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* dashed road centerline accent down the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg,
    rgba(246,197,24,.10) 0 26px, transparent 26px 60px);
  background-size: 6px 100%; background-position: 50% 0; background-repeat: no-repeat;
  opacity: .5;
}

main {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 40px 20px 24px;
}

.back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); text-decoration: none; font-size: 13px;
  margin-bottom: 26px;
}
.back:hover { color: var(--rr-yellow); }

h1 {
  font-size: 34px; line-height: 1.15; margin: 0 0 6px;
  letter-spacing: -.5px;
}
/* The wordmark runs the traffic light: Road-Rage-Map in green, amber, red,
   the same order as the severity scale. */
h1 .green { color: var(--rr-green); }
h1 .amber { color: var(--rr-yellow); }
h1 .red { color: var(--rr-red); }

.tagline { margin: 0 0 30px; color: var(--muted); font-size: 15px; font-weight: 600; }
.updated { margin: 0 0 30px; color: var(--muted); font-size: 13px; }

h2 {
  font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
  margin: 38px 0 14px;
}
h3 { font-size: 16px; margin: 24px 0 8px; }

p { margin: 0 0 14px; }
.lede { font-size: 17px; }

ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }

a { color: var(--rr-yellow); }

/* severity scale (about) */
.sev { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sev .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; flex: none; }
.sev.annoying   .dot { background: var(--rr-green);  box-shadow: 0 0 8px rgba(54,166,79,.5); }
.sev.aggressive .dot { background: var(--rr-yellow); box-shadow: 0 0 8px rgba(246,197,24,.5); }
.sev.dangerous  .dot { background: var(--rr-red);    box-shadow: 0 0 8px rgba(214,51,41,.5); }
.sev b { display: block; font-size: 15px; }
.sev.annoying   b { color: var(--rr-green); }
.sev.aggressive b { color: var(--rr-yellow); }
.sev.dangerous  b { color: var(--rr-red); }
.sev span { color: var(--muted); font-size: 14px; }

/* labelled points */
.point { margin-bottom: 18px; }
.point b { display: block; font-size: 15px; margin-bottom: 3px; }
.point span { color: var(--muted); font-size: 14px; }

.card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 26px 0;
}
.card.warn { border-color: rgba(214,51,41,.45); background: rgba(214,51,41,.10); }
.card.warn p { color: #f0a49f; margin: 0; font-size: 14px; }
.card.warn b { color: var(--rr-red); }
.card.note { border-color: rgba(246,197,24,.40); background: rgba(246,197,24,.08); }
.card.note p { color: #e8d488; margin: 0; font-size: 14px; }
.card.note b { color: var(--rr-yellow); }

/* data tables in the privacy policy */
table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.08); }
th { color: var(--muted); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
td:first-child { width: 34%; font-weight: 600; }
td span { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* traffic-light divider */
.lights { display: inline-flex; gap: 10px; margin: 30px 0 0; padding: 8px 12px;
  background: #111316; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; }
.lights span { width: 13px; height: 13px; border-radius: 50%; opacity: .35; }
.lights .r { background: var(--rr-red); }
.lights .y { background: var(--rr-yellow); }
.lights .g { background: var(--rr-green); opacity: 1; box-shadow: 0 0 12px rgba(54,166,79,.8); }

footer {
  position: relative; z-index: 1;
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 18px 20px 30px;
}
footer .road { height: 4px; max-width: 1040px; margin: 0 auto 16px;
  background: repeating-linear-gradient(90deg, var(--rr-yellow) 0 22px, transparent 22px 44px); opacity: .5; }
footer a { color: var(--muted); }
footer a:hover { color: var(--rr-yellow); }

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  main { padding-top: 28px; }
  td:first-child { width: auto; }
}
