/* ============================================
   LEGAL PAGES - POLÍTICAS Y TÉRMINOS
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
}

/* ============================================
   CONTAINER
   ============================================ */

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.legal-header {
  background: white;
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.logo .tagline {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.back-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: #f0f0f0;
  color: #764ba2;
}

/* ============================================
   CONTENT
   ============================================ */

.legal-content {
  background: white;
  border-radius: 12px;
  padding: 50px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.legal-content h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.last-updated {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 30px;
  font-style: italic;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.75rem;
  color: #34495e;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

section h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

section p {
  margin-bottom: 15px;
  color: #444;
  font-size: 1rem;
  text-align: justify;
}

section ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

section ul li {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.7;
}

section ul li strong {
  color: #2c3e50;
  font-weight: 600;
}

section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

section a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ============================================
   SPECIAL SECTIONS
   ============================================ */

.legal-footer-section {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

.legal-footer-section p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #555;
}

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

/* ============================================
   FOOTER
   ============================================ */

.legal-footer {
  background: white;
  border-radius: 12px;
  padding: 25px 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.legal-footer p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #764ba2;
}

.footer-links span {
  color: #bdc3c7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .legal-container {
    padding: 15px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo .tagline {
    font-size: 0.8rem;
  }

  .back-link {
    margin-top: 15px;
    width: 100%;
    text-align: center;
  }

  .legal-content {
    padding: 30px 25px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  section h3 {
    font-size: 1.15rem;
  }

  section p {
    font-size: 0.95rem;
  }

  section ul {
    margin-left: 20px;
  }

  .legal-footer {
    padding: 20px 25px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links span {
    display: none;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 25px 20px;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

  section h3 {
    font-size: 1.05rem;
  }

  section p,
  section ul li {
    font-size: 0.9rem;
    text-align: left;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
  }

  .legal-container {
    max-width: 100%;
    padding: 0;
  }

  .legal-header,
  .legal-footer {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .legal-content {
    box-shadow: none;
  }

  .back-link {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

