/* ============================================================================
   Centro Legal — NexWorker OS
   Estilos compartidos para la página legal y el banner de cookies.
   ============================================================================ */
:root {
  --lg-bg: #0b1220;
  --lg-panel: #111a2e;
  --lg-panel-2: #0d1526;
  --lg-border: #1e293b;
  --lg-t1: #e2e8f0;
  --lg-t2: #b8c4d6;
  --lg-t4: #7c8aa0;
  --lg-cyan: #22d3ee;
  --lg-blue: #3b82f6;
  --lg-amber: #f59e0b;
  --lg-green: #34d399;
  --lg-red: #f87171;
}

.legal-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--lg-bg);
  color: var(--lg-t1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.legal-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px 80px; }

/* Encabezado */
.legal-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lg-border);
}
.legal-header-inner {
  max-width: 960px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.legal-brand { display: flex; align-items: center; gap: 12px; }
.legal-brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--lg-cyan), var(--lg-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #0b1220; font-size: 14px;
}
.legal-brand .name { font-weight: 800; font-size: 16px; }
.legal-brand .sub { font-size: 11px; color: var(--lg-t4); }
.legal-back {
  font-size: 12px; color: var(--lg-cyan); text-decoration: none;
  border: 1px solid var(--lg-border); padding: 8px 14px; border-radius: 10px;
  transition: all .15s;
}
.legal-back:hover { background: rgba(34, 211, 238, .08); border-color: var(--lg-cyan); }

/* Nav de pestañas */
.legal-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 28px 0 8px; padding: 6px;
  background: var(--lg-panel-2); border: 1px solid var(--lg-border);
  border-radius: 14px;
}
.legal-tabs a {
  font-size: 12px; color: var(--lg-t4); text-decoration: none;
  padding: 9px 14px; border-radius: 9px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.legal-tabs a:hover { color: var(--lg-t1); background: rgba(255,255,255,.04); }
.legal-tabs a.active { color: #0b1220; background: var(--lg-cyan); font-weight: 700; }

/* Contenido */
.legal-section {
  margin-top: 24px; padding: 36px;
  background: var(--lg-panel); border: 1px solid var(--lg-border);
  border-radius: 20px;
}
.legal-section h1 {
  font-size: 26px; margin: 0 0 6px; letter-spacing: -0.5px;
}
.legal-section .doc-meta { font-size: 12px; color: var(--lg-t4); margin-bottom: 28px; }
.legal-section h2 {
  font-size: 17px; color: var(--lg-cyan); margin: 30px 0 10px;
  padding-top: 20px; border-top: 1px solid var(--lg-border);
}
.legal-section h2:first-of-type { border-top: none; padding-top: 0; }
.legal-section p, .legal-section li { font-size: 14px; color: var(--lg-t2); }
.legal-section ul { padding-left: 20px; }
.legal-section li { margin-bottom: 8px; }
.legal-section a { color: var(--lg-cyan); }

.legal-note {
  margin-top: 28px; padding: 16px 18px; border-radius: 12px;
  background: rgba(245, 158, 11, .06); border: 1px solid rgba(245, 158, 11, .35);
  font-size: 13px; color: #fcd34d;
}
.legal-note.warn {
  background: rgba(248, 113, 113, .06); border-color: rgba(248, 113, 113, .35); color: #fca5a5;
}

.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 11px 12px; border: 1px solid var(--lg-border);
}
.legal-table th { background: var(--lg-panel-2); color: var(--lg-t1); font-size: 12px; }
.legal-table td { color: var(--lg-t2); }
.legal-table code { color: var(--lg-cyan); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

.legal-footer {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--lg-border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  font-size: 12px; color: var(--lg-t4);
}
.legal-footer a { color: var(--lg-t4); text-decoration: none; }
.legal-footer a:hover { color: var(--lg-cyan); }

/* Banner de cookies (inyectado por cookies.js) */
.nx-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 520px; margin: 0 auto;
  background: #0d1526; border: 1px solid #22d3ee55; border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  font-family: 'Inter', system-ui, sans-serif; color: #b8c4d6; font-size: 13px;
}
.nx-cookie-banner .t { display: flex; align-items: center; gap: 8px; color: #22d3ee; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.nx-cookie-banner p { margin: 10px 0 0; line-height: 1.6; font-size: 12.5px; }
.nx-cookie-banner .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nx-cookie-banner button { cursor: pointer; border: none; border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 700; font-family: inherit; transition: all .15s; }
.nx-cookie-banner .ghost { background: #16213a; color: #b8c4d6; border: 1px solid #1e293b; }
.nx-cookie-banner .ghost:hover { background: #1c2a47; }
.nx-cookie-banner .primary { background: linear-gradient(90deg, #22d3ee, #3b82f6); color: #0b1220; }
.nx-cookie-banner .link { background: none; color: #22d3ee; text-decoration: underline; padding: 9px 6px; }

.nx-cookie-config {
  position: fixed; inset: 0; z-index: 10000; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
}
.nx-cookie-config .box {
  background: #0d1526; border: 1px solid #1e293b; border-radius: 18px;
  max-width: 480px; width: 100%; padding: 24px; max-height: 86vh; overflow-y: auto;
}
.nx-cookie-config h3 { margin: 0 0 14px; font-size: 15px; color: #e2e8f0; }
.nx-cookie-config .row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid #1e293b;
}
.nx-cookie-config .row b { color: #e2e8f0; font-size: 13px; display: block; }
.nx-cookie-config .row span { font-size: 11.5px; color: #7c8aa0; }
.nx-cookie-config input[type=checkbox] { accent-color: #22d3ee; width: 16px; height: 16px; margin-top: 4px; }
.nx-cookie-config .ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
