/* LEGAL PAGES STYLES */
/* Compatible con el diseño principal de la web */

/* Variables del tema principal */
:root {
  --negro: #0D0D0D;
  --verde: #00FF85;
  --gris: #2E2E2E;
  --blanco: #F5F5F5;
  --azul: #007BFF;
  
  --max-width: 1200px;
  --padding-mobile: 1rem;
  --padding-desktop: 2rem;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container principal de páginas legales */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px var(--padding-mobile) 40px;
  min-height: 100vh;
}

/* Header de la página legal */
.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--verde);
  position: relative;
}

.legal-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(45deg, var(--verde), var(--azul));
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--blanco), var(--verde));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* Enlace de regreso */
.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 30px;
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border: 2px solid var(--verde);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: transparent;
}

.back-link:hover {
  background-color: var(--verde);
  color: var(--negro);
  transform: translateX(-5px);
}

.back-link::before {
  content: '←';
  margin-right: 8px;
  font-size: 1.2em;
}

/* Secciones de contenido legal */
.legal-section {
  margin-bottom: 40px;
  background-color: var(--gris);
  padding: 30px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--verde);
  transition: var(--transition);
}

.legal-section:hover {
  background-color: rgba(46, 46, 46, 0.8);
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(0, 255, 133, 0.1);
}

.legal-section h2 {
  color: var(--verde);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.legal-section h2::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(45deg, var(--verde), var(--azul));
  border-radius: 2px;
}

.legal-section h3 {
  color: var(--azul);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
}

.legal-section p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.legal-section ul, .legal-section ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.legal-section li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.legal-section li strong {
  color: var(--verde);
}

/* Enlaces dentro del contenido */
.legal-section a {
  color: var(--azul);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--verde);
  text-decoration: none;
}

/* Cajas de información especial */
.company-info,
.contact-info {
  background-color: var(--negro);
  padding: 25px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  border: 1px solid rgba(0, 255, 133, 0.3);
  position: relative;
}

.company-info::before,
.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--verde), var(--azul));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.company-info p,
.contact-info p {
  margin-bottom: 8px;
}

.company-info strong,
.contact-info strong {
  color: var(--verde);
}

/* Cajas de destacado/advertencia */
.highlight,
.important-box {
  background-color: rgba(0, 123, 255, 0.1);
  padding: 20px;
  border-left: 4px solid var(--azul);
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.service-box {
  background-color: rgba(0, 255, 133, 0.1);
  padding: 20px;
  border-left: 4px solid var(--verde);
  border-radius: var(--border-radius);
  margin: 20px 0;
}

/* Tipos de cookies */
.cookie-type {
  background-color: var(--negro);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  border: 1px solid rgba(0, 255, 133, 0.2);
  transition: var(--transition);
}

.cookie-type:hover {
  border-color: var(--verde);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 133, 0.1);
}

.cookie-type h3 {
  color: var(--verde);
  margin-bottom: 10px;
}

/* Tabla de cookies */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: var(--negro);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 133, 0.2);
}

.cookie-table th {
  background: linear-gradient(45deg, var(--verde), var(--azul));
  color: var(--negro);
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gris);
  font-size: 0.9rem;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table tr:nth-child(even) {
  background-color: rgba(46, 46, 46, 0.5);
}

.cookie-table tr:hover {
  background-color: rgba(0, 255, 133, 0.05);
}

/* Fecha de actualización */
.update-date {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid var(--gris);
  font-style: italic;
  color: rgba(245, 245, 245, 0.7);
  font-size: 0.9rem;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .legal-container {
    padding: 100px var(--padding-desktop) 60px;
  }
  
  .legal-header h1 {
    font-size: 3rem;
  }
  
  .legal-section {
    padding: 40px;
  }
  
  .legal-section h2 {
    font-size: 1.7rem;
  }
  
  .cookie-table th,
  .cookie-table td {
    padding: 15px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .legal-header h1 {
    font-size: 3.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.8rem;
  }
  
  .legal-container {
    padding: 120px var(--padding-desktop) 80px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-section {
  animation: fadeInUp 0.6s ease forwards;
}

.legal-section:nth-child(2) { animation-delay: 0.1s; }
.legal-section:nth-child(3) { animation-delay: 0.2s; }
.legal-section:nth-child(4) { animation-delay: 0.3s; }
.legal-section:nth-child(5) { animation-delay: 0.4s; }

/* Scroll suave para enlaces internos */
html {
  scroll-behavior: smooth;
}