/* ==========================================================================
   Lafine Systems Design - RoamSwitch Premium Design System
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-surface: #0e1322;
  --bg-card: rgba(18, 26, 47, 0.65);
  --bg-card-hover: rgba(26, 38, 68, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.35);
  --border-glow: rgba(16, 185, 129, 0.4);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #818cf8;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-cyan-glow);
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 19, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}


.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* "by <company>" next to the product name. Hidden only on narrow phones; the maker line in
   the footer carries the same information there. */
.nav-brand-by {
  font-size: 0.58rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-left: 2px;
  align-self: flex-end;
  padding-bottom: 4px;
}
@media (max-width: 640px) {
  .nav-brand-by { display: none; }
}
/* Centre the menu on the page itself (not merely in the gap between logo and buttons, which
   drifts because the two sides differ in width): logo | menu | buttons on a 1fr auto 1fr grid.
   Below 960px the menu is hidden and the original flex layout takes over. */
@media (min-width: 961px) {
  .nav-content { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-content .nav-brand { justify-self: start; }
  .nav-content .nav-actions { justify-self: end; }
}
.nav-dropdown-left .nav-dropdown-menu { left: 0; right: auto; }
.nav-dropdown-sep {
  height: 1px;
  margin: 6px 8px;
  padding: 0 !important;
  background: var(--border-subtle);
}
.footer-maker {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 26px 0 0;
}
.footer-maker a { color: var(--accent-cyan); margin-left: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  /* No gap between the trigger and this menu — a gap here would be a dead
     zone the mouse has to cross without hovering anything, which drops
     `:hover` and closes the menu before the pointer ever reaches it. */
  top: 100%;
  right: 0;
  padding: 16px 10px 10px;
  list-style: none;
  min-width: 190px;
  background: rgba(14, 19, 34, 0.97);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 10;
}

.nav-dropdown-menu li {
  padding: 2px 0;
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-dropdown-menu .nav-link:hover {
  background: rgba(56, 189, 248, 0.1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile navigation (hamburger). js/nav-toggle.js toggles .is-open on .nav-panel and on the
   accordion items; aria-expanded is the source of truth for assistive tech.
   Desktop (>960px): the button is hidden and .nav-panel is display:contents, so .nav-links and
   .nav-actions stay direct grid/flex children of .nav-content exactly as before. */
.nav-toggle { display: none; }
.nav-panel { display: contents; }

@media (max-width: 960px) {
  /* Hand-written headers without the hamburger (none at the moment; sync-chrome generates all of them): keep the old behaviour. */
  .navbar .nav-content > .nav-links { display: none; }
  .navbar .nav-content { position: static; }
  .navbar { --nav-panel-top: 64px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -6px -8px -6px 0;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover { background: rgba(56, 189, 248, 0.1); }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; left: 0; top: -7px; }
  .nav-toggle-bars::after { position: absolute; left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-panel-top));
    max-height: calc(100dvh - var(--nav-panel-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 24px 24px;
    background: #0a0e1b;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-panel.is-open { display: block; }

  .navbar .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navbar .nav-links > li { border-bottom: 1px solid var(--border-subtle); }
  .navbar .nav-links .nav-link {
    display: block;
    padding: 13px 4px;
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
    font-size: 1rem;
  }
  .navbar .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 600;
  }
  .navbar .nav-dropdown-trigger:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: -2px; border-radius: var(--radius-sm); }

  /* Sub-menus are an accordion driven by .is-open (hover does not exist on touch screens, and a
     sticky :hover must never keep one open), so the desktop hover/focus-within rules are neutralised. */
  .navbar .nav-dropdown .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--border-subtle);
    border-radius: 0;
    box-shadow: none;
  }
  .navbar .nav-dropdown:hover > .nav-dropdown-menu,
  .navbar .nav-dropdown:focus-within > .nav-dropdown-menu { display: none; }
  .navbar .nav-dropdown.is-open > .nav-dropdown-menu { display: block; }
  .navbar .nav-dropdown-menu li { padding: 0; }
  .navbar .nav-dropdown-menu .nav-link { padding: 10px 10px; font-size: 0.95rem; font-weight: 500; }
  .navbar .nav-dropdown-sep { margin: 6px 0; }

  .navbar .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
  }
  .navbar .nav-actions .lang-selector-wrapper { display: flex !important; }
  .navbar .nav-actions #lang-select { flex: 1; min-height: 44px; font-size: 0.95rem !important; }
  .navbar .nav-actions .btn { width: 100%; min-height: 44px; margin: 0; padding: 10px 18px; font-size: 0.95rem; }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .nav-panel.is-open { animation: nav-panel-in 0.18s ease-out; }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: transform 0.18s ease, top 0.18s ease, background-color 0.18s ease; }
}
@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
/* Mobile: no horizontal page scroll (audited by `csp-browser-check.mjs overflow`, widths 320/375/414/768).
   Desktop (>960px) is untouched. `body` prefixes beat the per-page stylesheets that load after this file. */
@media (max-width: 960px) {
  body { overflow-wrap: break-word; }
  /* wide tables scroll inside themselves (tables already wrapped in .table-wrap keep their own scroller) */
  body :not(.table-wrap) > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body pre { max-width: 100%; overflow-x: auto; }
  body code { overflow-wrap: anywhere; }
  body pre code { overflow-wrap: normal; }
  body img, body video { max-width: 100%; height: auto; }
}
@media (max-width: 560px) {
  body .btn { white-space: normal; text-align: center; max-width: 100%; box-sizing: border-box; }
  body .faq-tab-btn { white-space: normal; }
  /* hero headings keep their phrases on one line (inline nowrap) only while they fit */
  body .hero-title span { white-space: normal !important; }
}
@media (max-width: 560px) {
  body .features-grid { grid-template-columns: 1fr; }
  body [class*="grid"] > * { min-width: 0; }
}
@media (max-width: 480px) {
  /* inline max-width (e.g. 600px) on guide screenshots/videos must not exceed the viewport */
  body .guide-shot { max-width: 100% !important; }
  /* inline auto-fit grids with a 300px+ minimum column collapse to one column */
  body [style*="grid-template-columns"][style*="minmax(3"] { grid-template-columns: 1fr !important; }
  /* inline min-width on flex cards (screenshot cards etc.) is capped at the container width; wrapping is kept */
  body [style*="min-width: 260px"] { min-width: min(260px, 100%) !important; }
  body [style*="min-width: 280px"] { min-width: min(280px, 100%) !important; }
  body [style*="min-width: 300px"] { min-width: min(300px, 100%) !important; }
  body [style*="min-width: 320px"] { min-width: min(320px, 100%) !important; }
  body [style*="min-width: 340px"] { min-width: min(340px, 100%) !important; }
  body .platform-switch { max-width: 100%; box-sizing: border-box; }
  body .platform-switch-opt { padding: 5px 10px !important; }
}


@media (max-width: 480px) {
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .nav-brand span {
    font-size: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}


.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  color: #041324;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
}

/* Hero Section */
.hero {
  padding: 36px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Mockup Preview */
.app-preview-wrapper {
  margin: 40px auto 0;
  max-width: 860px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(56, 189, 248, 0.15);
}

.mockup-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

@media (max-width: 768px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
}

.mockup-panel {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.mockup-panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Features Grid */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-accent);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 10-Point Security Matrix */
.audit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.audit-item-badge {
  font-size: 1.1rem;
}

.audit-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.audit-item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  margin-top: 36px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table td {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Zero Telemetry Banner */
.zero-telemetry-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 60px 0;
}

/* Forms (Contact Page) */
.form-card {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Legal Documents */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

.legal-section h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

.legal-section p, .legal-section ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul {
  padding-left: 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-table th, .legal-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.legal-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-primary);
  width: 25%;
  vertical-align: top;
}

.legal-table td {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}


