/* Novatrix Legal Documents - Shared Dark Theme Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0B1E;
  --bg-2: #0E1030;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --violet: #A78BFA;
  --cyan: #67E8F9;
  --accent: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --warning-bg: rgba(245, 158, 11, 0.08);
  --warning-border: rgba(245, 158, 11, 0.3);
  --warning-text: #FCD34D;
  --success-bg: rgba(16, 185, 129, 0.08);
  --success-border: rgba(16, 185, 129, 0.3);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.ambient::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}
.ambient::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  z-index: 100;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* Header */
.header {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
}
.header .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.header .breadcrumb a {
  color: var(--violet);
  text-decoration: none;
}
.header .breadcrumb a:hover { color: var(--cyan); }
.header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Meta blocks */
.meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  padding: 18px 22px;
  margin-bottom: 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.meta strong { color: var(--text); }
.meta--success {
  border-left-color: #10B981;
  background: var(--success-bg);
  border-color: var(--success-border);
}
.meta--success a { color: #6EE7B7; }
.meta--warning {
  border-left-color: #F59E0B;
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.meta--warning strong { color: var(--warning-text); }
.meta--warning a { color: #FCD34D; }

/* Headings */
h2 {
  color: var(--text);
  margin: 44px 0 16px;
  font-size: 1.55rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
h3 {
  color: var(--text);
  margin: 24px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Text */
p, li {
  margin-bottom: 12px;
  color: var(--text-dim);
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li { margin-bottom: 6px; }

a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
a:hover {
  color: var(--cyan);
  border-bottom-color: currentColor;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 26px;
  border-radius: 12px;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.toc h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: none;
  font-weight: 500;
}
.toc ol {
  margin-bottom: 0;
  margin-top: 12px;
  color: var(--text-muted);
}
.toc li { margin-bottom: 4px; }
.toc a { color: var(--text-dim); border: none; }
.toc a:hover { color: var(--violet); border: none; }

/* Contact block */
.contact {
  background: var(--surface);
  padding: 28px;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.contact p { margin-bottom: 8px; }
.contact strong { color: var(--text); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-family: var(--font-mono);
}
td strong { color: var(--text); }
tr:last-child td { border-bottom: none; }

/* Product grid (for legal index page) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.5);
  background: var(--surface-2);
  border-bottom-color: rgba(124, 58, 237, 0.5);
}
.product-card h3 {
  margin: 0 0 6px;
  color: var(--violet);
  font-size: 1.05rem;
}
.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.2);
}
.footer p { color: var(--text-muted); }
.footer a {
  color: var(--text-dim);
  margin: 0 10px;
  border: none;
}
.footer a:hover { color: var(--violet); border: none; }
.footer-links { margin-top: 12px; }

/* Responsive */
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .header { padding: 60px 18px 40px; }
  .header h1 { font-size: 1.85rem; }
  .container { padding: 30px 18px 60px; }
  h2 { font-size: 1.3rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 8px 10px; }
}
