/* Estilos específicos para la página de términos y condiciones */

:root {
  --primary:  #0983d6;
  --bg-dark: #0D0D0D;
  --bg-card: #1A1A1A;
  --text-light: #FFFFFF;
  --text-gray: #A0A0A0;
}

/* Logo y título */
.logo-section {
  text-align: center;
  margin-bottom: 0.1rem;
  padding: 0.1rem;
  background: var(--bg-dark);
  border: 1px solid var(--text-gray);
  backdrop-filter: blur(10px);
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.app-name {
  color: var(--text-light);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.form-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin: 1.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

/* Contenido de términos */
.terms-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
  backdrop-filter: blur(10px);
}

/* Scrollbar personalizada para el contenido de términos */
.terms-content::-webkit-scrollbar {
  width: 8px;
}

.terms-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6);
  border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.8);
}

/* Secciones de términos */
.terms-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
}

.terms-section h3 {
  color: #4a90e2;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.terms-section h3:before {
  content: "▶";
  color: #4a90e2;
  font-size: 0.8em;
  margin-right: 0.5rem;
}

.terms-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.terms-section ul {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  position: relative;
}

.terms-section li:before {
  content: "•";
  color: #4a90e2;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* Footer de términos */
.terms-footer {
  background: rgba(74, 144, 226, 0.1);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1.5rem;
}

.terms-footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.terms-footer strong {
  color: #4a90e2;
}

/* Botón personalizado para términos */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo-section {
  animation: fadeInUp 0.8s ease-out;
}

.logo {
  animation: logoFloat 3s ease-in-out infinite;
}

.app-name {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-title {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.terms-content {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Responsive */
@media (max-width: 768px) {
  .terms-content {
    padding: 1rem;
    max-height: 400px;
  }
  
  .terms-section h3 {
    font-size: 1.1rem;
  }
  
  .form-container {
    padding: 1rem;
  }
  
  .logo-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0.8rem;
  }
  
  .app-name {
    font-size: 2rem;
  }
  
  .form-title {
    font-size: 1.5rem;
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .logo-section {
    padding: 1rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .app-name {
    font-size: 1.8rem;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
}

/* Mejoras de accesibilidad */
.terms-content:focus-within {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

.terms-section h3:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hover effects para mejor UX */
.terms-section:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: background 0.3s ease;
}