/* Marketing and legal pages.
 *
 * Self-contained: includes theme variables, reset, typography, header,
 * main, and footer styles. Loaded by server-rendered pages via the
 * /* catch-all (served from ./public/). Does not depend on home.css.
 *
 * If theme tokens drift between this and src/home.css, the editor and
 * marketing site will start looking subtly different — periodic
 * reconciliation expected. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --accent: #4a90d9;
  --accent-hover: #3a7bc8;
  --border: #e0e0e0;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #777;
  --accent: #5a9ee6;
  --accent-hover: #6aade8;
  --border: #333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}

/* Header navigation. Duplicated in src/home.css and public/marketing.css
   because the homepage is a bundled route while the legal pages are
   server-rendered; keep the two blocks in sync. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a:not(.site-nav__cta) {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.site-nav__cta):hover {
  color: var(--text);
}

.site-nav__cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__cta:hover {
  background: var(--accent-hover);
}

@media (max-width: 600px) {
  /* Wrap the nav onto a full-width second row so it never overflows. */
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding-bottom: 4px;
  }

  .site-nav a:not(.site-nav__cta) {
    font-size: 14px;
  }

  .site-nav__cta {
    padding: 6px 12px;
  }
}

.marketing-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.marketing-logo__mark {
  width: 90px;
  height: 90px;
}

.marketing-logo__wordmark {
  height: 40px;
}

/* Main content (long-form prose) */
.marketing-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.marketing-main h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.marketing-main h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.marketing-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.marketing-main p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.marketing-main ul {
  margin: 0 0 16px 24px;
  padding: 0;
}

.marketing-main li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 6px;
}

.marketing-main strong {
  font-weight: 600;
}

.marketing-main em {
  font-style: italic;
}

.marketing-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.marketing-main a:hover {
  color: var(--accent-hover);
}

.marketing-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Highlighted key fact within a marketing/legal page — used on /privacy
   to draw the eye to the load-bearing reassurances (data minimisation,
   30-day deletion, etc.). */
.marketing-callout {
  background: #fff3b8;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
}

[data-theme="dark"] .marketing-callout {
  background: rgba(255, 215, 64, 0.14);
}

.marketing-meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.marketing-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.marketing-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketing-footer__company {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.marketing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.marketing-footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.marketing-footer__links a:hover {
  color: var(--text);
}

@media (min-width: 720px) {
  .marketing-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .marketing-header {
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .marketing-logo__mark {
    width: 60px;
    height: 60px;
  }

  .marketing-logo__wordmark {
    height: 28px;
  }

  .marketing-main {
    padding: 32px 16px 56px;
  }

  .marketing-main h1 {
    font-size: 26px;
  }

  .marketing-main h2 {
    font-size: 18px;
  }
}
