/* Shared styling for the static site (home / terms / privacy). Mirrors the app's own
   theme: the splash cream background, black text, the #3c87f7 accent and the Spline
   Sans type ramp from client/src/constants/theme.ts. */
@import url('https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FEF9F5;            /* app splash background */
  --text: #000000;          /* Colors.light.text */
  --muted: #60646C;         /* Colors.light.textSecondary */
  --border: #E0E1E6;        /* Colors.light.backgroundSelected */
  --accent: #3c87f7;        /* Accent.primary */
  --accent-strong: #208AEF; /* darker brand blue, used on hover */
  --content: 800px;         /* MaxContentWidth */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Spline Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
header.site nav {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  text-decoration: none;
}
header.site .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}
header.site a { font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; }
header.site a:hover { color: var(--text); }

main { max-width: var(--content); margin: 0 auto; padding: 48px 24px; }

/* Home hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: 64px 0;
}
.hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.hero h1 { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.5px; margin: 0; text-wrap: balance; }
.hero p { font-size: 19px; line-height: 30px; color: var(--muted); max-width: 560px; margin: 0; text-wrap: pretty; }
.hero .accent { color: var(--accent); }

/* Legal pages */
h1 { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 8px; }
h2 { font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -0.2px; margin: 32px 0 8px; }
.effective { color: var(--muted); margin-bottom: 32px; }
ul { padding-left: 24px; }
li { margin-bottom: 8px; }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
.note { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 40px; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
footer.site a { color: var(--muted); margin: 0 12px; text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* Phones: the hero title drops to the app's screen-title size. */
@media (max-width: 640px) {
  .hero { padding: 40px 0; gap: 24px; }
  .hero img { width: 104px; height: 104px; border-radius: 24px; }
  .hero h1 { font-size: 34px; line-height: 41px; font-weight: 700; }
  .hero p { font-size: 16px; line-height: 24px; }
  header.site .brand { font-size: 16px; }
}
