/* Olis website — shared styles.
 *
 * Deliberately plain: this is structure, not the final design. The palette is
 * lifted from constants/theme.ts (the champagne set the app uses) so the
 * skeleton is not jarring next to the app, but the layout is placeholder work
 * pending the design draft in test2.pen.
 *
 * No web fonts. A font file is a third-party request, and the Privacy Policy's
 * claim that Olis runs no tracking reads better from a page that contacts
 * nobody at all. System stack only.
 */

:root {
  color-scheme: light;
  --bg: #FCF6EF;
  --surface: #FFFFFF;
  --text: #1B3A6B;
  --text-secondary: #A88B5E;
  --text-muted: #B7A98F;
  --olive: #C9A96E;
  --olive-soft: #F3E9D5;
  --border: #E8DDD0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  padding: 32px 24px 0;
  max-width: 680px;
  margin: 0 auto;
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}

h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 48px 0 16px;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  margin: 32px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 32px;
}

.muted { color: var(--text-muted); font-size: 15px; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--olive); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.card .email {
  font-size: 20px;
  font-weight: 600;
  word-break: break-all;
}

.faq { border-top: 1px solid var(--border); margin-top: 8px; }
.faq h3 { border-top: 1px solid var(--border); padding-top: 24px; }
.faq h3:first-of-type { border-top: 0; padding-top: 0; }

footer.site {
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

footer.site a { color: var(--text-muted); margin-right: 20px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  .lede { font-size: 18px; }
  .wrap { padding: 32px 20px 64px; }
}

/* Legal documents — /terms and /privacy.
 *
 * These pages are generated by scripts/build-legal.mjs from the markdown in
 * docs/. The rules live here rather than in a <style> block on the page because
 * the site's content security policy is style-src 'self': an inline block would
 * be blocked and the page would render unstyled.
 */

.legal { max-width: 760px; }
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 {
  font-size: 21px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 7px; }
.legal strong { font-weight: 600; }
.legal code {
  background: var(--olive-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.legal .table-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 280px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--olive-soft); font-weight: 600; }
.legal tbody tr:nth-child(even) td { background: var(--surface); }
