/* ================================================================
   CNG Studios — Unified Legal Document Styles
   Centrally hosted at assets.mypixiesuite.com/legal/assets/legal.css
   Brand theming via data-brand attribute on <html> or body.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* mypixiesuite brand override — matches mypixiesuite.com nav logo exactly */
html[data-brand="mypixiesuite"] .logo { gap: 0; font-family: 'Geist', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[data-brand="mypixiesuite"] .logo-mark { display: none; }
html[data-brand="mypixiesuite"] .logo-text {
  font-family: 'Geist', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
html[data-brand="mypixiesuite"] .logo-text .my,
html[data-brand="mypixiesuite"] .logo-text .pixie { color: #F5C842; font-weight: 800; }
html[data-brand="mypixiesuite"] .logo-text .suite { color: #F0ECE3; }
html[data-brand="mypixiesuite"] .logo-text .tm {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.85;
  color: #F0ECE3;
  letter-spacing: 0;
}

:root {
  /* Default theme — CNG Studios (cyan/violet) */
  --bg: #050508;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --text: #e2e8f0;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.25);
  --accent: #22d3ee;       /* cyan */
  --accent-2: #a78bfa;     /* violet */
  --accent-dim: rgba(34, 211, 238, 0.08);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 860px;
  --radius: 1.5rem;
}

/* ---------- Per-brand overrides (data-brand="<name>") ---------- */

[data-brand="alixalora"]   { --accent: #e11d48; --accent-2: #f43f5e; }  /* rose */
[data-brand="neolonia"]    { --accent: #ec4899; --accent-2: #8b5cf6; }  /* pink/violet */
[data-brand="radioura"]    { --accent: #06b6d4; --accent-2: #3b82f6; }  /* cyan/blue */
[data-brand="helix"]       { --accent: #10b981; --accent-2: #22d3ee; }  /* emerald/cyan */
[data-brand="inhumancorp"] { --accent: #f59e0b; --accent-2: #ef4444; }  /* amber/red */
[data-brand="mypixiesuite"]{ --accent: #f5c842; --accent-2: #a78bfa; }  /* gold/violet */
[data-brand="echopixie"]   { --accent: #a78bfa; --accent-2: #22d3ee; }  /* violet/cyan */
[data-brand="hadespixie"]  { --accent: #d4a843; --accent-2: #f59e0b; }  /* gold */
[data-brand="irispixie"]   { --accent: #f472b6; --accent-2: #a78bfa; }  /* pink/violet */
[data-brand="athenapixie"] { --accent: #f59e0b; --accent-2: #dc2626; }  /* amber/red */
[data-brand="gaiapixie"]   { --accent: #84cc16; --accent-2: #10b981; }  /* lime/emerald */
[data-brand="hermespixie"] { --accent: #34d399; --accent-2: #22d3ee; }  /* emerald/cyan */
[data-brand="callipixie"]  { --accent: #e879f9; --accent-2: #a78bfa; }  /* fuchsia */
[data-brand="sirenpixie"]  { --accent: #22d3ee; --accent-2: #06b6d4; }  /* cyan */
[data-brand="cliopixie"]   { --accent: #8b5cf6; --accent-2: #ec4899; }  /* violet/pink */

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: #000; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  transition: transform 0.3s;
}

.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }

.nav-back {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-back:hover { color: var(--accent); }

/* ---------- Language switcher ---------- */

.lang-switch {
  display: inline-flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 16px;
}

.lang-switch a { color: var(--text-muted); padding: 0 6px; }
.lang-switch a.active { color: var(--accent); }

/* ---------- Page header ---------- */

.page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-header .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Content ---------- */

.legal-content {
  padding: clamp(40px, 6vw, 72px) 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content em { color: var(--text); font-style: italic; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-content th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}

.legal-content td { color: var(--text-dim); }

.legal-content .callout {
  padding: 20px 24px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.legal-content .callout strong { color: var(--accent); }

.legal-content a { font-weight: 500; }

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.footer-copy {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

/* ---------- Accessibility ---------- */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-dim: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
  }
}

@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; gap: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
