/* ═══════════════════════════════════════════════════════════════════════
   SONORIX PUBLIC — shared stylesheet for legal pages and contact
   Uses the same tokens and aesthetic as the landing page
   ═══════════════════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0612;
  --bg-2: #0f0a1c;
  --ink: #f5ecd9;
  --ink-soft: #d8cbb0;
  --ink-faint: #8a7f69;
  --accent: #f4c95d;
  --accent-2: #c084fc;
  --accent-3: #60d394;
  --line: rgba(245, 236, 217, 0.08);
  --line-soft: rgba(245, 236, 217, 0.04);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; transition: color .2s; }

/* ═══ Ambient ═══════════════════════════════════════════════════════ */
.ambient {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.ambient::before {
  content: ''; position: absolute;
  top: -30%; left: -20%; width: 80%; height: 80%;
  background: radial-gradient(closest-side, rgba(244, 201, 93, 0.10), transparent 70%);
  filter: blur(60px);
}
.ambient::after {
  content: ''; position: absolute;
  bottom: -20%; right: -10%; width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(192, 132, 252, 0.08), transparent 70%);
  filter: blur(80px);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

/* ═══ Navigation ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: backdrop-filter .3s, background .3s;
}
.nav.scrolled {
  background: rgba(10, 6, 18, 0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .mark {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 100px;
  font-weight: 500; font-size: 13px; letter-spacing: 0.01em;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* ═══ Legal page layout ═══════════════════════════════════════════════ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 160px 40px 60px;
}
.back-link {
  display: inline-block;
  color: var(--ink-faint);
  font-size: 13px;
  margin-bottom: 32px;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}
.section-label::before {
  content: '— ';
  color: var(--accent);
}
.legal-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.legal-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.legal-sub {
  color: var(--ink-faint);
  font-size: 15px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
}

.legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px 40px;
}
.legal-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-card h3:first-child { margin-top: 0; }
.legal-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 14px;
}
.legal-card p strong { color: var(--ink); font-weight: 500; }
.legal-card a { color: var(--accent); border-bottom: 1px solid rgba(244,201,93,0.3); }
.legal-card a:hover { border-bottom-color: var(--accent); }
.legal-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(244,201,93,0.08);
  padding: 2px 8px;
  border-radius: 3px;
}

.legal-list, ol.legal-list {
  list-style: none;
  margin: 12px 0 20px;
  padding-left: 0;
}
.legal-list li {
  padding: 8px 0 8px 28px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 300;
  position: relative;
}
.legal-list li::before {
  content: '→';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 500;
}
ol.legal-list {
  counter-reset: ol;
}
ol.legal-list li::before {
  content: counter(ol) '.';
  counter-increment: ol;
  font-family: var(--font-mono);
  font-size: 13px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 28px 24px; }
  .legal-page { padding: 120px 20px 40px; }
}

/* ═══ Contact hero ═══════════════════════════════════════════════════ */
.contact-hero {
  margin-top: 24px;
  padding: 24px;
  background: rgba(244, 201, 93, 0.05);
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 10px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  word-break: break-all;
  display: block;
}
.contact-value:hover { color: var(--ink); }

/* ═══ Footer ═══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 40px 40px;
  max-width: 1400px;
  margin: 80px auto 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.footer-brand em { font-style: italic; color: var(--accent); }
.footer-desc {
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  font-weight: 300;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-bottom .made {
  font-family: var(--font-display);
  font-style: italic;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ═══ Scrollbar ═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245, 236, 217, 0.1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 236, 217, 0.2); }
