/* ============================================================
   estilos.css — Pronet Systems
   Único archivo CSS. Optimizado para Google Ads.
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0f0e17;
  color: #e8e8e8;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ------------------------------------------------------------
   2. VARIABLES
   ------------------------------------------------------------ */
:root {
  --purple: #6952eb;
  --purple-dark: #35258f;
  --purple-light: #9b8df7;
  --bg: #0f0e17;
  --bg2: #1a1828;
  --card-bg: #1e1c2e;
  --text: #fff;
  --text-muted: #fff;
  --radius: 14px;
  --transition: 0.3s ease;
}

/* ------------------------------------------------------------
   3. CONTACT BAR (marquee superior)
   ------------------------------------------------------------ */
.contact-bar {
  background: var(--purple-dark);
  color: #fff;
  font-size: 0.82rem;
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 50;
}

.contact-bar marquee { color: #e0daff; }

/* ------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------ */
.main-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(105, 82, 235, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 0;
}

.logo-img {
  height: 120px;
  width: auto;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(105, 82, 235, 0.3);
}

.main-nav-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 0 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav li a {
  color: #ccc;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.main-nav li a:hover {
  color: var(--purple-light);
  background: rgba(105, 82, 235, 0.1);
}

.main-nav .sep {
  color: var(--purple);
  font-weight: 300;
  padding: 0 2px;
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  background-image: url("img/optimizacion-ram.jpeg");
  background-size: cover;         /* Ajustado */
  background-position: center;   /* Ajustado */
  background-repeat: no-repeat;  /* Ajustado */
  padding: 70px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Filtro oscuro agregado */
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* Esta línea oscurece */
    radial-gradient(circle at 20% 80%, rgba(105,82,235,0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(105,82,235,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-hero {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 24px rgba(105,82,235,0.35);
}

.btn-hero:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(105,82,235,0.45);
}

/* ------------------------------------------------------------
   6. CONTAINER
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   7. SECTION TITLE
   ------------------------------------------------------------ */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--purple);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ------------------------------------------------------------
   8. SERVICIOS GRID + CARDS
   ------------------------------------------------------------ */
.servicios-section {
  background: var(--bg2);
  padding: 70px 0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(105,82,235,0.15);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(105,82,235,0.2);
  border-color: rgba(105,82,235,0.4);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img { transform: scale(1.04); }

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge {
  display: inline-block;
  background: rgba(105,82,235,0.18);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(105,82,235,0.3);
  align-self: flex-start;
}

.card-body p {
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   9. RESEÑAS
   ------------------------------------------------------------ */
.reviews-section {
  background: var(--bg);
  padding: 70px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid rgba(105,82,235,0.15);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(105,82,235,0.18);
}

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.reviewer {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-light);
}

/* ------------------------------------------------------------
   10. INSTAGRAM GALLERY
   ------------------------------------------------------------ */
.instagram-section {
  background: var(--bg2);
  padding: 70px 0;
}

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar { height: 4px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

.gallery-item {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(105,82,235,0.2);
  transition: transform var(--transition), border-color var(--transition);
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--purple);
}

.gallery-item img {
  width: 180px;
  height: 180px;
  object-fit: cover;
}
/* ------------------------------------------------------------
   11. CONTACTO
   ------------------------------------------------------------ */
.contacto-section {
  background: var(--bg);
  padding: 70px 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
}

.contacto-info h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.contacto-sub {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}

.contacto-info p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.btn-wa {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  margin: 18px 0 24px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
}

.btn-wa:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(105,82,235,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  font-size: 18px;
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-3px) scale(1.08);
}

/* Mapa */
.mapa-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(105,82,235,0.2);
}

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--purple-dark);
  padding: 50px 20px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ------------------------------------------------------------
   13. WHATSAPP FLOTANTE CON BURBUJA - ESTILO IMAGEN
   ------------------------------------------------------------ */
.wsp-float {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  /* Solución: Evitar que genere barras de scroll */
  overflow: visible !important;
  max-width: 100% !important;
}

/* CONTENEDOR DEL CHAT */
.wsp-chat {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  overflow: hidden; /* Importante: Oculta lo que se sale */
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease;
  /* Solución: Asegurar que no tenga scroll interno */
  max-height: none !important;
}

/* CABECERA VERDE */
.wsp-chat-header {
  background: #7F00FF;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CÍRCULO CON IMAGEN DE USUARIO */
.wsp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
}

.wsp-avatar i {
  color: #25d366;
  font-size: 20px;
}

/* DATOS DEL CONTACTO */
.wsp-info {
  display: flex;
  flex-direction: column;
}

.wsp-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.wsp-status {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
}


/* ANIMACIÓN DE LATIDO */
@keyframes wsp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 18px 8px rgba(37,211,102,0.2);
  }
}

/* DATOS DEL CONTACTO */
.wsp-info {
  display: flex;
  flex-direction: column;
}

.wsp-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.wsp-status {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.wsp-button {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wsp-pulse 1.8s ease-in-out infinite alternate;
}

.wsp-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(37,211,102,0.6);
}

.wsp-button i {
  color: #ffffff;
  font-size: 30px;
}

/* ANIMACIÓN DE LATIDO */
@keyframes wsp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 18px 8px rgba(37,211,102,0.2);
  }
}

/* ------------------------------------------------------------
   14. SCROLL ANIMATE
   ------------------------------------------------------------ */
.scroll-animate {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   15. KEYFRAMES
   ------------------------------------------------------------ */
/* Ya definida arriba la animación wsp-pulse */

/* ------------------------------------------------------------
   16. RESPONSIVE — TABLET (max 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   17. RESPONSIVE — MÓVIL (max 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .logo-img { height: 80px; }

  .logo-header { padding: 10px 0 0; }

  .main-nav li a { font-size: 0.85rem; padding: 4px 6px; }

  .hero { padding: 45px 16px 40px; }

  .servicios-section,
  .reviews-section,
  .instagram-section,
  .contacto-section { padding: 50px 0; }

  .servicios-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .wsp-chat {
    width: 280px;
  }

  .wsp-button {
    width: 55px;
    height: 55px;
  }

  .wsp-button i {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------
   18. RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.6rem; }

  .btn-hero { padding: 12px 28px; font-size: 0.95rem; }

  .wsp-chat {
    width: 260px;
  }

  .wsp-button {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
  }

  .wsp-button i {
    font-size: 24px;
  }
}

/* ------------------------------------------------------------
   19. iOS / SAFARI FIX
   ------------------------------------------------------------ */
@supports (-webkit-touch-callout: none) {
  .main-header { position: relative; }
  .hero { margin-top: 0; padding-top: 40px; }
}

/* ============================================================
   EFECTO WORDPRESS REVEAL ON SCROLL
   Agrega animaciones de entrada estilo plantilla premium.
   Compatible con Google Ads — usa opacity, nunca display:none
   ============================================================ */

/* ------------------------------------------------------------
   ESTADOS INICIALES — elemento oculto antes de entrar pantalla
   ------------------------------------------------------------ */
.wp-hidden {
  will-change: opacity, transform;
}

/* Desde abajo (más común, igual que Elementor por defecto) */
.wp-hidden.wp-fade-up {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity  1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desde la izquierda */
.wp-hidden.wp-fade-left {
  opacity: 0;
  transform: translateX(-44px);
  transition:
    opacity  1.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desde la derecha */
.wp-hidden.wp-fade-right {
  opacity: 0;
  transform: translateX(44px);
  transition:
    opacity  1.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Solo fade (sin movimiento — galería, elementos anchos) */
.wp-hidden.wp-fade-in {
  opacity: 0;
  transform: none;
  transition: opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom suave */
.wp-hidden.wp-zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity  1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   ESTADO VISIBLE — cuando el observer dispara
   ------------------------------------------------------------ */
.wp-hidden.wp-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ------------------------------------------------------------
   NAV LINK ACTIVO al hacer scroll
   ------------------------------------------------------------ */
.main-nav a.nav-active {
  color: var(--purple-light) !important;
  background: rgba(105, 82, 235, 0.12);
  border-radius: 6px;
}

/* ------------------------------------------------------------
   REDUCIR MOVIMIENTO — accesibilidad y PageSpeed
   Si el usuario prefiere menos movimiento, desactivamos
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .wp-hidden.wp-fade-up,
  .wp-hidden.wp-fade-left,
  .wp-hidden.wp-fade-right,
  .wp-hidden.wp-zoom-in {
    opacity: 0;
    transform: none;
    transition: opacity 0.8s ease;
  }
}

/* BLOQUEO TOTAL DE BARRA EXTRA */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Esto atrapa cualquier elemento que se quiera salir */
body > * {
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   FUERZA TOTAL - OCUPAR TODO EL ANCHO DE PANTALLA
   ============================================================ */

.elfsight-app-1cf84c1b-8d21-4964-9653-849881c5bd77 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 15px !important; /* Solo un poquito de margen para que no toquen el borde */
  box-sizing: border-box !important;
}

/* Aseguramos que las tarjetas se vean bien */
.elfsight-app-1cf84c1b-8d21-4964-9653-849881c5bd77 .eapps-google-reviews-list {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

/* ============================================================
   OCULTAR NUMERO 4.4 Y ESTRELLAS GRANDES - VERSION FINAL
   ============================================================ */

/* Oculta el bloque completo de la puntuación */
.elfsight-app-1cf84c1b-8d21-4964-9653-849881c5bd77 .eapps-google-reviews-rating {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Por si acaso, oculta también el número suelto */
.elfsight-app-1cf84c1b-8d21-4964-9653-849881c5bd77 .eapps-google-reviews-rating-score {
  display: none !important;
}

/* ============================================================
   VIDEO LOCAL - NOMBRE ÚNICO PARA EVITAR CONFLICTOS
   ============================================================ */
.contacto-video {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(105,82,235,0.25);
  background: #000;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contacto-video {
    margin-top: 30px;
  }
}
.legal-page{
      background: var(--bg);
      min-height: 100vh;
      padding: 70px 0;
    }

    .legal-box{
      background: var(--card-bg);
      border: 1px solid rgba(105,82,235,0.18);
      border-radius: var(--radius);
      padding: 45px;
      box-shadow: 0 10px 35px rgba(0,0,0,.25);
    }

    .legal-box h1{
      font-size: clamp(2rem,4vw,3rem);
      margin-bottom: 25px;
      color: #fff;
      text-align: center;
    }

    .legal-box h2{
      margin-top: 35px;
      margin-bottom: 14px;
      font-size: 1.2rem;
      color: var(--purple-light);
    }

    .legal-box p,
    .legal-box li{
      color: rgba(255,255,255,.88);
      line-height: 1.8;
      font-size: .96rem;
    }

    .legal-box ul{
      padding-left: 22px;
      margin-top: 10px;
    }

    .legal-box li{
      margin-bottom: 10px;
    }

    .legal-disclaimer{
      margin-top: 40px;
      padding: 20px;
      border-radius: 12px;
      background: rgba(105,82,235,0.08);
      border: 1px solid rgba(105,82,235,0.25);
    }

    .legal-disclaimer p{
      font-size: .9rem;
      color: rgba(255,255,255,.72);
    }

    .legal-back{
      margin-top: 35px;
      text-align: center;
    }

    @media(max-width:768px){

      .legal-box{
        padding: 28px;
      }

    }
    .legal-page{
      background: var(--bg);
      min-height: 100vh;
      padding: 70px 0;
    }

    .legal-box{
      background: var(--card-bg);
      border: 1px solid rgba(105,82,235,0.18);
      border-radius: var(--radius);
      padding: 45px;
      box-shadow: 0 10px 35px rgba(0,0,0,.25);
    }

    .legal-box h1{
      font-size: clamp(2rem,4vw,3rem);
      margin-bottom: 25px;
      color: #fff;
      text-align: center;
      line-height: 1.2;
    }

    .legal-box h2{
      margin-top: 35px;
      margin-bottom: 14px;
      font-size: 1.2rem;
      color: var(--purple-light);
    }

    .legal-box p,
    .legal-box li{
      color: rgba(255,255,255,.88);
      line-height: 1.8;
      font-size: .96rem;
    }

    .legal-box ul{
      padding-left: 22px;
      margin-top: 10px;
    }

    .legal-box li{
      margin-bottom: 10px;
    }

    .legal-disclaimer{
      margin-top: 40px;
      padding: 20px;
      border-radius: 12px;
      background: rgba(105,82,235,0.08);
      border: 1px solid rgba(105,82,235,0.25);
    }

    .legal-disclaimer p{
      font-size: .9rem;
      color: rgba(255,255,255,.72);
      line-height: 1.7;
    }

    .legal-back{
      margin-top: 35px;
      text-align: center;
    }

    .footer-disclaimer{
      margin-top:20px;
      padding-top:20px;
      border-top:1px solid rgba(255,255,255,.12);
    }

    .footer-disclaimer p{
      font-size:.78rem;
      line-height:1.6;
      color:rgba(255,255,255,.65);
      text-align:center;
      max-width:900px;
      margin:auto;
    }

    @media(max-width:768px){

      .legal-box{
        padding: 28px;
      }

    }