/* ONYA marketing site — shared design tokens + base layout.
   Loaded by index.html, privacy.html and terms.html. Plain CSS, no build step. */

:root {
  --accent: #00E87A;
  --accent-strong: #00c468;
  --accent-ink: #00693a;
  --purple: #8B5CF6;
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --text: #0B0B0C;
  --text-secondary: #5b5b5b;
  --text-tertiary: #8a8a8a;
  --card: #F6F7F8;
  --card-strong: #EEF0F1;
  --border: #ECECEC;
  --shadow: rgba(15, 15, 20, 0.08);
  --shadow-strong: rgba(15, 15, 20, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --bg-raised: #111113;
    --text: #F5F5F5;
    --text-secondary: #A3A3A3;
    --text-tertiary: #6f6f6f;
    --card: #141415;
    --card-strong: #1b1b1d;
    --border: #232323;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-strong: rgba(0, 0, 0, 0.65);
    --accent-ink: #00E87A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Header, shared across all pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.site-header nav { display: flex; align-items: center; }
.site-header nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 24px;
  transition: color 0.15s ease;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--text); }

/* Footer, shared across all pages */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
}
footer.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
footer.site-footer .links a {
  text-decoration: none;
  margin-right: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
footer.site-footer .links a:hover,
footer.site-footer .links a:focus-visible { color: var(--text); }

/* Legal pages (privacy.html, terms.html) */
main.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}
main.legal h1 { font-size: 30px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
main.legal .updated { color: var(--text-tertiary); font-size: 13px; margin: 0 0 36px; }
main.legal h2 { font-size: 17px; font-weight: 700; margin: 34px 0 10px; letter-spacing: -0.01em; }
main.legal h3 { font-size: 14px; font-weight: 700; margin: 18px 0 6px; }
main.legal p, main.legal li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
main.legal ul { margin: 8px 0; padding-left: 20px; }
main.legal a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
main.legal a:hover, main.legal a:focus-visible { text-decoration: underline; }
nav.legal-links {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  gap: 20px;
}
nav.legal-links a { font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  main.legal { animation: legalFadeIn 0.5s ease both; }
}
@keyframes legalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
