/* carhunters.app: one stylesheet for every page. Colours from the app (Resources/values/colors.xml). */
:root {
  --navy: #001922;
  --navy-2: #00344a;
  --blue: #009cdd;
  --teal: #00cec8;
  --text: #1c2a30;
  --muted: #5b6b72;
  --line: #e5e9ec;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* Header bar on text pages */
.bar {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  padding: 14px 20px;
}
.bar a { display: inline-block; }
.bar img { height: 40px; width: auto; display: block; }

/* Text pages: privacy policy, terms */
main.text {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
main.text h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 4px; color: var(--navy); }
main.text .updated { color: var(--muted); margin: 0 0 28px; }
main.text h2 { font-size: 1.3rem; margin: 36px 0 8px; color: var(--navy); }
main.text h3 { font-size: 1.05rem; margin: 24px 0 6px; }
main.text ul, main.text ol { padding-left: 1.4em; }
main.text li { margin: 4px 0; }
main.text table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
main.text th, main.text td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
main.text th { background: #f5f7f8; }

/* Home page */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
}
.home img { width: min(360px, 80vw); height: auto; }
.home p { max-width: 520px; font-size: 1.15rem; color: #d6e6ec; margin: 28px 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--muted); margin: 0 8px; }
.home + footer { border-top: 0; background: var(--navy); color: #8aa3ad; }
.home + footer a { color: #8aa3ad; }
