/* Estilos específicos para páginas legales */

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--color-primary);
}

.legal-header h1 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.legal-header .last-updated {
  color: #666;
  font-style: italic;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.legal-section h3 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-section p {
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.legal-section ul,
.legal-section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.highlight-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.warning-box {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.info-box {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 2px solid #17a2b8;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  color: #155724;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  color: #721c24;
}

.contact-info {
  background: var(--color-background);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.back-button {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.table-of-contents {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

.table-of-contents h3 {
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.table-of-contents ul {
  list-style: none;
  margin-left: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Estilos para página de contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}

.contact-item {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.contact-item h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.faq-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.faq-item {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.faq-item h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 20px;
    margin: 20px 10px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .table-of-contents {
    padding: 15px;
  }
}
