/* Zeigar Automation — hoja de estilos de las páginas legales */

:root {
  --black: #0d1117;
  --steel: #2E5B8A;
  --steel-light: #4A7FB5;
  --steel-dark: #1A3A5C;
  --white: #F4F6F8;
  --offwhite: #E8ECF0;
  --gray: #6B7A8D;
  --light-gray: #D0D8E0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--white); color: var(--black);
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  line-height: 1.75; overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 60px; height: 72px;
  background: rgba(13,17,23,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,127,181,0.15);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-wordmark { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--white); letter-spacing: 5px; }
.nav-volver {
  font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(244,246,248,0.55);
  text-decoration: none; letter-spacing: 3px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-volver:hover { color: var(--steel-light); }

/* ─── CABECERA ─── */
.legal-hero {
  background: linear-gradient(135deg, #0d1f33 0%, #1A3A5C 70%, #2E5B8A 100%);
  padding: 88px 60px 72px; position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(74,127,181,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,181,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.legal-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.legal-tag {
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--steel-light);
  letter-spacing: 5px; text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.legal-tag::before { content: ''; width: 32px; height: 1px; background: var(--steel-light); }
.legal-hero h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(38px, 6vw, 64px);
  color: var(--white); letter-spacing: 3px; line-height: 1; margin-bottom: 14px;
}
.legal-fecha { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(244,246,248,0.45); letter-spacing: 2px; }

/* ─── CONTENIDO ─── */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 72px 60px 96px; }
.legal-wrap h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 27px; letter-spacing: 2px;
  margin: 52px 0 16px; color: var(--black);
  display: flex; align-items: baseline; gap: 12px;
}
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap h2 .num {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--steel);
  letter-spacing: 2px; flex-shrink: 0;
}
.legal-wrap h3 {
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px;
  margin: 28px 0 8px; color: var(--black);
}
.legal-wrap p { font-size: 15px; color: #3d4757; margin-bottom: 16px; }
.legal-wrap ul { margin: 0 0 18px 0; list-style: none; }
.legal-wrap ul li {
  font-size: 15px; color: #3d4757; padding-left: 18px;
  position: relative; margin-bottom: 9px;
}
.legal-wrap ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; background: var(--steel);
}
.legal-wrap a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap a:hover { color: var(--steel-light); }
.legal-wrap strong { font-weight: 500; color: var(--black); }

/* Ficha de datos */
.ficha {
  background: var(--offwhite); border-left: 3px solid var(--steel);
  padding: 26px 28px; margin: 4px 0 22px;
}
.ficha dl { display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; }
.ficha dt {
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray); padding-top: 4px;
}
.ficha dd { font-size: 15px; color: var(--black); }

/* Avisos destacados */
.nota {
  background: rgba(46,91,138,0.07); border-left: 3px solid var(--steel-light);
  padding: 18px 22px; margin: 22px 0; font-size: 14px; color: #3d4757;
}
.nota strong { display: block; margin-bottom: 5px; }

/* Tabla de tratamientos */
.tabla { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
.tabla th {
  text-align: left; background: var(--black); color: var(--white);
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 400; padding: 12px 14px;
}
.tabla td { padding: 13px 14px; border-bottom: 1px solid var(--light-gray); color: #3d4757; vertical-align: top; }
.tabla tr:last-child td { border-bottom: none; }

/* ─── FOOTER ─── */
.legal-footer {
  background: var(--black); padding: 44px 60px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(74,127,181,0.15);
}
.legal-footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.legal-footer a {
  font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(244,246,248,0.45);
  text-decoration: none; letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.2s;
}
.legal-footer a:hover { color: var(--white); }
.legal-copy { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(244,246,248,0.22); letter-spacing: 2px; }

/* ─── MÓVIL ─── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .legal-hero { padding: 56px 24px 48px; }
  .legal-wrap { padding: 48px 24px 64px; }
  .ficha { padding: 20px; }
  .ficha dl { grid-template-columns: 1fr; gap: 3px 0; }
  .ficha dd { margin-bottom: 12px; }
  .legal-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla thead { display: none; }
  .tabla tr { border-bottom: 1px solid var(--light-gray); padding: 12px 0; }
  .tabla td { border: none; padding: 3px 0; }
  .tabla td::before {
    content: attr(data-col); display: block;
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gray); margin-bottom: 2px;
  }
}
