/* Shared tokens, header, footer and legal pages. Values come from the design handoff. */
:root {
  --bg: #141413;
  --surface: #1C1C1B;
  --surface-2: #1F1F1E;
  --footer-bg: #0E0E0D;
  --ink: #F5F5F4;
  --ink-muted: rgba(245, 245, 244, 0.7);
  --ink-faint: rgba(245, 245, 244, 0.55);
  --accent: #299FFF;
  --accent-link-hover: #7CC4FF;
  --line: rgba(255, 255, 255, 0.08);
  --error: #FF6B6B;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

.site-header { padding: 24px clamp(16px, 4vw, 24px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; }
.site-header img { display: block; width: 180px; height: auto; }

.site-footer { padding: clamp(48px, 7vw, 72px) 24px 40px; background: var(--footer-bg); border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.site-footer .logo { display: flex; }
.site-footer .logo img { display: block; width: 220px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.site-footer nav a { font-size: 16px; font-weight: 500; }
.site-footer p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.6; opacity: 0.7; text-wrap: pretty; }
.site-footer .copy { font-size: 14px; opacity: 0.7; }

.eyebrow { font-size: clamp(15px, 2.2vw, 20px); font-weight: 700; color: var(--accent); text-align: center; }
.accent { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 16px clamp(20px, 5vw, 30px);
  border: 0; border-radius: 6px; background: var(--accent); color: #141413;
  font-size: 16px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap;
  cursor: pointer; transition: opacity 200ms ease, filter 200ms ease;
}
.btn:hover { filter: brightness(1.08); color: #141413; }
.btn svg { flex: none; }
.btn:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0;
  border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent);
}
.link-btn:hover { color: #1A86E0; }

/* Legal pages */
.legal { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 24px) clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 48px); }
.legal h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.legal section { display: flex; flex-direction: column; gap: 14px; }
.legal h2 { margin: 0; font-size: clamp(20px, 2.2vw, 23px); line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; }
.legal h3 { margin: 10px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.legal p { margin: 0; font-size: 16px; line-height: 1.75; color: rgba(245, 245, 244, 0.78); text-wrap: pretty; overflow-wrap: anywhere; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.7; color: rgba(245, 245, 244, 0.78); }
.legal strong { font-weight: 700; color: var(--ink); }
.legal a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a.inline:hover { color: var(--accent-link-hover); }
.legal .contact-grid { margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.legal .contact-grid > div { padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.legal .contact-grid .label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: rgba(245, 245, 244, 0.5); }
.legal .contact-grid .value { font-size: 16px; line-height: 1.5; color: var(--ink); }
.legal .contact-grid a.value { color: var(--accent); }
.legal .contact-grid a.value:hover { color: var(--accent-link-hover); }
.legal p.meta { font-size: 14px; color: var(--ink-faint); }
.legal p.meta.rule { padding-top: 24px; border-top: 1px solid var(--line); }
