/* ===================================
   ESTILOS PARA PÁGINAS LEGALES
   =================================== */

/* Contenedor principal de contenido legal */
.legal-content {
  background: linear-gradient(135deg, #132b1e 0%, #1a3a29 100%);
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(31, 162, 90, 0.3);
  color: #fff;
  line-height: 1.8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Encabezado de página */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-header .subtitle {
  color: #999;
  font-size: 0.95rem;
  margin: 0;
}

/* Títulos dentro del contenido legal */
.legal-content h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  font-weight: 600;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  color: #00d4ff;
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

/* Párrafos */
.legal-content p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* Listas */
.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1rem 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Enlaces */
.legal-content a {
  color: #00d4ff;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 500;
}

.legal-content a:hover {
  color: #ffd700;
}

/* Texto en negrita */
.legal-content strong {
  color: #ffd700;
  font-weight: 600;
}

/* Botón de volver */
.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid #1fa25a;
  color: #1fa25a;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline:hover {
  background: #1fa25a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 162, 90, 0.4);
}

/* Tablas (si las hay) */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content th {
  background: rgba(31, 162, 90, 0.2);
  color: #ffd700;
  font-weight: 600;
}

/* Bloques de código (si los hay) */
.legal-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #00d4ff;
}

/* Notas importantes */
.legal-content .note {
  background: rgba(255, 215, 0, 0.1);
  border-left: 4px solid #ffd700;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.legal-content .warning {
  background: rgba(255, 69, 0, 0.1);
  border-left: 4px solid #ff4500;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem;
  }
  
  .page-header h2 {
    font-size: 2rem;
  }
  
  .legal-content h2 {
    font-size: 1.5rem;
  }
  
  .legal-content h3 {
    font-size: 1.2rem;
  }
  
  .legal-content ul,
  .legal-content ol {
    margin-left: 1rem;
  }
  
  .btn-outline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .page-header {
    margin-bottom: 2rem;
  }
  
  .page-header h2 {
    font-size: 1.8rem;
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
  }
  
  .legal-content h3 {
    font-size: 1.1rem;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 0.95rem;
  }
}

/* Animaciones suaves */
.legal-content {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar personalizado para contenido largo */
.legal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: rgba(31, 162, 90, 0.5);
  border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 162, 90, 0.8);
}
