/* Crime Code subsite — shared styles */

/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-light: #5b86e5;
  --brand-dark: #2b4ba0;
  --ink: #111;
  --muted: #666;
  --faint: #999;
  --line: #e0e0e0;
  --bg-soft: #f5f7fb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-dark);
}

/* Site nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.site-nav .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav .nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.site-nav .nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav .nav-links a:hover {
  color: var(--brand-dark);
}

/* Hero */
.hero {
  background-image: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px 72px;
}

.hero img.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero p.subhead {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 26px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #fff;
  color: var(--brand-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Generic section */
.section {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 20px;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section .section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Soft band */
.band {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .privacy-nutshell {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink);
}

.band .center {
  text-align: center;
}

/* Coverage note */
.coverage {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Disclaimer callout */
.disclaimer {
  background-color: #fff8ec;
  border: 1px solid #f0dcae;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 0.9rem;
  color: #5b4a25;
}

.disclaimer strong {
  color: #5b4a25;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: auto;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer .footer-links a:hover {
  color: var(--brand-dark);
}

.footer .footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 12px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ----- Legal pages (privacy / terms) ----- */
.legal {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.legal h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.legal .meta {
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-top: 10px;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 6px;
}

.legal p,
.legal li {
  color: #333;
  font-size: 0.95rem;
}

.legal p {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .intro {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .site-nav .nav-links {
    gap: 12px;
  }
}
