/* Healthy Apps, Inc. corporate site — stylesheet for the generated legal
   pages (/privacy, /terms). `index.html` and `404.html` are hand-written
   one-pagers that carry their own inline <style>; this file exists so the
   pages emitted by backend/aws/scripts/build-site-app.js have chrome
   without inlining the same CSS into every generated document.

   Brand palette shared with the Patientic product surfaces
   (Theme/Colors.swift → site-app/styles.css): warm beige / peach /
   lilac / heart-pink, Plus Jakarta Sans. */

:root {
  --bg: #F5F0EB;
  --bg-card: #FFFFFF;
  --ink: #2E2A26;
  --ink-secondary: #6E6E73;
  --ink-tertiary: #8E8E93;
  /* Brand peach kept for decoration; --peach-text is the darker text
     variant. It measures 4.08:1 on --bg, under the 4.5:1 AA threshold —
     site-app/styles.css claims AA for this pair, but that ratio (4.62:1)
     is against the white cards it sits on there, and the .legal body here
     sits directly on the beige. Known gap, not a passing ratio; fixing it
     means darkening the brand peach, which is not this file's call. */
  --peach: #D87B4A;
  --peach-text: #B85A33;
  --stone: #EAE3DC;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--peach-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--peach-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 720px) { .site-header { padding: 20px 32px; } }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 22px; flex: 0 0 40px; }
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Main */
.page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 56px;
}
@media (min-width: 720px) { .page { padding: 24px 32px 72px; } }

/* Legal documents (generated from docs/*.md) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 0;
}
.legal h1 {
  font-size: clamp(30px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal p { margin: 12px 0; color: var(--ink); }
.legal ul, .legal ol { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--peach);
  background: rgba(221,120,80,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}
.legal blockquote p:first-child { margin-top: 0; }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal hr { border: none; border-top: 1px solid var(--stone); margin: 32px 0; }
.legal code {
  background: rgba(46,42,38,0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.legal em { color: var(--ink-secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone);
  padding: 24px 20px;
  margin-top: auto;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.footer-inner a { color: var(--ink-secondary); }
.footer-inner a:hover { color: var(--ink); }
.footer-sep { color: var(--ink-tertiary); }
.footer-legal { width: 100%; text-align: center; color: var(--ink-tertiary); margin-top: 6px; font-size: 12.5px; }
