/* ============================================================
   Tallé — shared site theme
   Linked by every page via <link rel="stylesheet" href="/styles.css">.
   Contains the common theme: CSS variables, base element styles,
   the sticky nav header, the footer, buttons, layout containers,
   and the shared legal-document component (privacy + terms).
   Google Fonts are loaded via <link> in each page's <head>.
   Page-specific CSS stays in each page's own inline <style> block.
   ============================================================ */

:root {
  --bg: #0a1428;
  --bg2: #0e1a33;
  --card: #172747;
  --line: #1f3258;
  --text: #e8edf6;
  --dim: #8a9bbd;
  --mint: #3ee0a8;
  --mint2: #23b489;
  --warn: #ffb547;
  --danger: #ff6b6b;
  --ink: #0b1224;
}

/* ─── Base ─── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.serif { font-family: 'Instrument Serif', serif; font-style: italic; }
.eyebrow { color: var(--mint); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; }

/* ─── Nav ─── */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(10,20,40,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 28px; color: var(--mint); font-weight: 400; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.cta { background: var(--mint); color: var(--ink); padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: transform .15s; display: inline-block; }
.cta:hover { transform: translateY(-1px); }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ─── Footer ─── */
footer { padding: 40px 0; border-top: 1px solid var(--line); }
footer .footer-signature { font-size: 0.875rem; color: var(--dim); opacity: 0.85; font-style: italic; text-align: center; line-height: 1.4; margin: 0.5rem 0 0.25rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .links a:hover { color: var(--text); }

/* ─── Legal-document component (privacy, terms) ─── */
.doc { padding: 72px 0 96px; position: relative; overflow: hidden; }
.doc::before {
  content: ''; position: absolute; inset: -20% 20% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(62,224,168,0.10), transparent 60%);
  pointer-events: none;
}
.doc .wrap { max-width: 820px; position: relative; }
h1.doc-h { font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 14px; }
h1.doc-h em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--mint); }
.updated { color: var(--dim); font-size: 14px; margin: 0 0 28px; }
.updated .mono { color: var(--text); }
.tldr { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 0 0 40px; }
.tldr b { color: var(--mint); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.tldr p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.doc h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin: 44px 0 14px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p { color: var(--dim); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.doc p strong, .doc li strong { color: var(--text); font-weight: 600; }
.doc ul { color: var(--dim); font-size: 16px; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--mint); border-bottom: 1px solid rgba(62,224,168,0.35); transition: border-color .15s; }
.doc a.inline:hover { border-color: var(--mint); }
.contact-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-top: 20px; }
.contact-card b { display: block; margin-bottom: 6px; }
.contact-card a { color: var(--mint); font-weight: 600; }

/* ─── Responsive (shared theme portions) ─── */
@media (max-width: 1199px) {
  .wrap { padding: 0 32px; }
}
@media (max-width: 1023px) {
  .nav-links { gap: 20px; font-size: 13px; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 22px; }
  nav.top .wrap { height: 56px; }
  .nav-links { display: none; }
  .logo { font-size: 24px; }
  .cta { padding: 8px 14px; font-size: 13px; }
  .doc { padding: 48px 0 64px; }
  h1.doc-h { font-size: 36px; letter-spacing: -0.8px; }
  .doc h2 { font-size: 20px; }
  footer .wrap { flex-direction: column; gap: 14px; text-align: center; }
  footer .links { flex-wrap: wrap; justify-content: center; gap: 18px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .logo { font-size: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  h1.doc-h { font-size: 30px; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ─── iOS safe area ─── */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  @media (max-width: 767px) {
    .wrap { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
  }
}
