/* Shared styles for the public site (landing + legal pages). No external dependencies. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e2e5ea;
  --accent: #0f7b5f;
  --accent-text: #ffffff;
  --note-bg: #fff8e6;
  --note-border: #e8c766;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #1a1d22;
    --text: #e8eaee;
    --muted: #a0a7b4;
    --border: #2b3038;
    --accent: #3fbf95;
    --accent-text: #0b0d10;
    --note-bg: #2a2416;
    --note-border: #7a6420;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

header.site, footer.site {
  border-bottom: 1px solid var(--border);
}

footer.site {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 16px;
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

nav.top .brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

nav.top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.card h3 { margin-top: 0; }

/* Conspicuous box required for the AI Transparency Statement (Garmin agreement 15.10). */
.ai-statement {
  background: var(--note-bg);
  border: 2px solid var(--note-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.ai-statement h2 { margin-top: 0.25rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.table-scroll { overflow-x: auto; }

th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.5rem 0.5rem 0;
}

th { color: var(--muted); font-weight: 600; }

.small { font-size: 0.875rem; color: var(--muted); }
