/* ==========================================================================
   POLÍTICA DE PRIVACIDAD — INSOFT (DISEÑO CORPORATIVO CENTRADO)
   Limpio, elegante, legible y adaptado al header fijo
   ========================================================================== */

:root {
  --navy-dark: #080e22;
  --navy-primary: #0f1c3f;
  --navy-light: #1e2d5a;
  --gold: #FCA503;
  --gold-hover: #e59400;
  --gold-soft: rgba(252, 165, 3, 0.12);
  --cyan: #06B6D4;
  --green: #22c55e;
  --red: #ef4444;
  --gray-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  background-color: var(--gray-bg);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.75;
}

/* ==========================================================================
   HERO BANNER (Despejado 135px para no quedar tapado por el header fijo)
   ========================================================================== */
.legal-hero {
  background: linear-gradient(135deg, #070e24 0%, #0d1736 50%, #152248 100%);
  color: #ffffff;
  padding: 135px 20px 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero .container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252, 165, 3, 0.14);
  color: var(--gold);
  border: 1px solid rgba(252, 165, 3, 0.4);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(252, 165, 3, 0.12);
}

.legal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
  color: #ffffff;
}

.legal-hero-sub {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.legal-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.legal-hero-meta i {
  color: var(--gold);
}

/* ==========================================================================
   CONTENIDO CENTRAL (CENTRADO, MAX-WIDTH 860px)
   ========================================================================== */
.legal-content-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}


/* ==========================================================================
   SECCIONES DE CONTENIDO
   ========================================================================== */
.legal-card-section {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 34px 38px;
  box-shadow: 0 4px 16px rgba(15, 28, 63, 0.04);
  scroll-margin-top: 100px;
}

.section-header-title {
  color: var(--navy-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(252, 165, 3, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header-title span.num {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: #ffffff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 28, 63, 0.2);
}

.legal-card-section p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-card-section p:last-child {
  margin-bottom: 0;
}

.legal-card-section ul {
  padding-left: 20px;
  color: #334155;
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-card-section li {
  margin-bottom: 8px;
}

.legal-card-section strong {
  color: var(--navy-primary);
}

/* Caja de introducción */
.intro-statement-card {
  background: linear-gradient(135deg, rgba(252, 165, 3, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border-top: 1px solid rgba(252, 165, 3, 0.2);
  border-right: 1px solid rgba(252, 165, 3, 0.15);
  border-bottom: 1px solid rgba(252, 165, 3, 0.15);
}

.intro-statement-card p {
  font-size: 1rem;
  color: #1e293b;
  margin: 0;
  line-height: 1.75;
}

/* Tabla moderna */
.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin: 20px 0 10px;
}

.legal-table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.legal-table-modern th {
  background: #0f1c3f;
  color: #ffffff;
  padding: 13px 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.legal-table-modern td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

.legal-table-modern tr:nth-child(even) td {
  background: #f8fafc;
}

.tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-badge.id { background: #e0f2fe; color: #0284c7; }
.tag-badge.contact { background: #fef3c7; color: #b45309; }
.tag-badge.comm { background: #dcfce7; color: #15803d; }
.tag-badge.tech { background: #f1f5f9; color: #475569; }

/* Grid Derechos ARCO */
.rights-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.right-card-item {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px 18px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.right-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy-primary);
  transition: background 0.25s;
}

.right-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 28, 63, 0.08);
  border-color: #cbd5e1;
}

.right-card-item:hover::before {
  background: var(--gold);
}

.right-card-item .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.right-card-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.right-card-item p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   SECCIÓN 6: GESTIÓN Y ELIMINACIÓN DE CUENTAS (CARD DESTACADA)
   ========================================================================== */
.deletion-hero-section {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08), 0 4px 14px rgba(15, 28, 63, 0.04);
  padding: 38px 40px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.deletion-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef4444 0%, #FCA503 50%, #ef4444 100%);
}

.deletion-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.deletion-title {
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deletion-subtitle {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.supported-apps-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.supported-apps-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
}

.app-chip i {
  color: var(--gold);
}

.app-chip.os {
  border-color: #94a3b8;
  color: #475569;
}

.deletion-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.method-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.method-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 28, 63, 0.05);
}

.method-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.method-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.method-card h4 {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.method-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

.btn-method-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-method-action.portal {
  background: linear-gradient(135deg, #EF4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-method-action.portal:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.btn-method-action.whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-method-action.whatsapp:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
}

.data-audit-box {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  padding: 20px 22px;
}

.data-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.data-audit-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-audit-col.deleted h5 { color: #dc2626; }
.data-audit-col.retained h5 { color: #0284c7; }

.data-audit-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
}

.data-audit-col li {
  margin-bottom: 6px;
}

/* Banner de Compromiso y Asistencia */
.support-pledge-banner {
  background: linear-gradient(135deg, #0d1736 0%, #172554 100%);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(15, 28, 63, 0.1);
}

.support-pledge-text {
  flex: 1 1 450px;
}

.support-pledge-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.support-pledge-text p {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.support-pledge-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pledge-wa {
  background: #22c55e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
}

.btn-pledge-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-pledge-mail {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-pledge-mail:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Enlaces de pie de página */
.legal-footer-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.legal-footer-nav a {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.legal-footer-nav a:hover {
  background: var(--gold-soft);
  color: #b45309;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero {
    padding: 115px 16px 40px;
  }
  .legal-content-container {
    padding: 28px 16px 60px;
  }
  .legal-card-section,
  .deletion-hero-section {
    padding: 24px 20px;
  }
  .data-audit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .support-pledge-banner {
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .support-pledge-actions {
    flex-direction: column;
  }
  .btn-pledge-wa,
  .btn-pledge-mail {
    justify-content: center;
    width: 100%;
  }
}
