/* Phase A — minimal shared layout. No framework, no CDN, no JS. */

:root {
  --accent: #1a73e8;
  --accent-dark: #1557b0;
  --text: #222;
  --text-dim: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f9f9f9;
  --nav-bg: #ffffff;
  --footer-bg: #f5f5f5;
  --border: #e5e5e5;
  --border-strong: #222;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Nav */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav .brand {
  font-weight: 700;
  font-size: 1.15em;
  color: var(--text);
}
.site-nav .brand span { color: var(--accent); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav ul a {
  color: var(--text-dim);
  font-weight: 500;
}
.site-nav ul a:hover { color: var(--accent); text-decoration: none; }

/* Main content wrapper */
main { display: block; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9em;
}
.site-footer a { color: var(--text-dim); margin: 0 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copyright { margin-top: 12px; color: var(--text-muted); }

/* Legal pages (privacy, terms) */
.legal {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.legal h1 { font-size: 2em; margin-bottom: 8px; }
.legal h2 {
  font-size: 1.3em;
  margin-top: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.legal h3 { font-size: 1.1em; margin-top: 20px; margin-bottom: 4px; }
.legal p, .legal ul { color: var(--text-dim); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.legal .effective {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 24px;
}

/* Contact page */
.contact-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}
.contact-page h1 { font-size: 2em; margin-bottom: 16px; }
.contact-page h2 { font-size: 1.4em; margin-top: 32px; margin-bottom: 12px; }
.contact-page p, .contact-page ul { color: var(--text-dim); }

@media (max-width: 640px) {
  .site-nav-inner { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 14px; }
}
