/*
  Estilos compartidos para las páginas legales (Acerca de, Privacidad, etc.)
  - Usa variables de Tailwind para consistencia.
  - Diseño limpio, enfocado en la legibilidad.
*/

body {
  background-color: theme('colors.gray.50');
  font-family: theme('fontFamily.sans');
}

.dark body {
  background-color: theme('colors.gray.900');
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.legal-card {
  background-color: theme('colors.white');
  border-radius: theme('borderRadius.lg');
  box-shadow: theme('boxShadow.xl');
  padding: 3rem;
  border: 1px solid theme('colors.gray.200');
}

.dark .legal-card {
  background-color: theme('colors.gray.800');
  border-color: theme('colors.gray.700');
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid theme('colors.gray.200');
}

.dark .legal-header {
  border-color: theme('colors.gray.700');
}

.legal-header .logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.legal-header h1 {
  font-size: theme('fontSize.3xl');
  font-weight: theme('fontWeight.bold');
  color: theme('colors.gray.900');
}

.dark .legal-header h1 {
  color: theme('colors.white');
}

.legal-header .subtitle,
.legal-header .last-updated {
  font-size: theme('fontSize.lg');
  color: theme('colors.gray.500');
  margin-top: 0.5rem;
}

.dark .legal-header .subtitle,
.dark .legal-header .last-updated {
  color: theme('colors.gray.400');
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: theme('fontSize.xl');
  font-weight: theme('fontWeight.semibold');
  color: theme('colors.gray.800');
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid theme('colors.gray.200');
}

.dark .legal-section h2 {
  color: theme('colors.gray.100');
  border-color: theme('colors.gray.700');
}

.legal-section h3 {
  font-size: theme('fontSize.lg');
  font-weight: theme('fontWeight.semibold');
  color: theme('colors.gray.700');
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.dark .legal-section h3 {
  color: theme('colors.gray.200');
}

.legal-section p,
.legal-section li {
  color: theme('colors.gray.600');
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

.dark .legal-section p,
.dark .legal-section li {
  color: theme('colors.gray.300');
}

.legal-section ul {
  list-style-position: inside;
  padding-left: 0.5rem;
  margin-top: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: theme('colors.indigo.500');
  font-weight: bold;
}

.highlight-box {
  background-color: theme('colors.indigo.50');
  border-left-width: 4px;
  border-color: theme('colors.indigo.500');
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: theme('borderRadius.md');
}

.dark .highlight-box {
  background-color: theme('colors.gray.700');
  border-color: theme('colors.indigo.400');
}

.highlight-box p {
  color: theme('colors.gray.800');
}

.dark .highlight-box p {
  color: theme('colors.gray.100');
}

.important-notice {
    background-color: theme('colors.red.50');
    border: 1px solid theme('colors.red.200');
    padding: 1.5rem;
    border-radius: theme('borderRadius.md');
    margin: 2rem 0;
}

.dark .important-notice {
    background-color: #4c1d1d;
    border-color: theme('colors.red.800');
}

.important-notice strong {
    color: theme('colors.red.600');
    font-weight: bold;
}

.dark .important-notice strong {
    color: theme('colors.red.400');
}


.legal-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid theme('colors.gray.200');
}

.dark .legal-footer {
  border-color: theme('colors.gray.700');
}

.footer-link {
  color: theme('colors.indigo.600');
  text-decoration: none;
  font-weight: theme('fontWeight.medium');
  transition: color 0.3s;
  margin: 0 1rem;
}

.dark .footer-link {
  color: theme('colors.indigo.400');
}

.footer-link:hover {
  color: theme('colors.indigo.800');
}

.dark .footer-link:hover {
  color: theme('colors.indigo.300');
}

.page-footer {
  padding: 2rem;
  text-align: center;
  font-size: theme('fontSize.sm');
  color: theme('colors.gray.500');
}

.dark .page-footer {
  color: theme('colors.gray.400');
}

.page-footer a {
  color: theme('colors.indigo.600');
  text-decoration: underline;
}

.dark .page-footer a {
    color: theme('colors.indigo.400');
}
