/* =========================================================
   BLUUPI — LEGAL PAGES
   Aviso legal / Privacidad / Cookies / Condiciones
========================================================= */

/* Éléments desktop cachés sur mobile */
.desktop-header,
.desktop-footer{
  display:none;
}
/* =========================================================
   1. PAGE
========================================================= */

.legal-page{
  width:100%;
  max-width:460px;
  min-height:100vh;
  margin:0 auto;
  padding:34px 20px 120px;
  background:var(--bg);
  color:var(--text);
}


/* =========================================================
   2. HEADER
========================================================= */

.legal-header{
  margin-bottom:24px;
}

.legal-header small{
  color:var(--blue);
  font-weight:900;
  font-size:15px;
}

.legal-header h1{
  margin:6px 0 0;
  color:var(--primary);
  font-size:38px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.045em;
}

.legal-header p{
  margin:14px 0 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}


/* =========================================================
   3. LEGAL CARD
========================================================= */

.legal-card{
  width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:26px 22px;
}

.legal-card section{
  margin-top:30px;
}

.legal-card section:first-child{
  margin-top:0;
}

.legal-card h2{
  margin:0 0 12px;
  color:var(--primary);
  font-size:26px;
  line-height:1.12;
  font-weight:900;
  letter-spacing:-.04em;
}

.legal-card h3{
  margin:22px 0 10px;
  color:var(--primary);
  font-size:21px;
  line-height:1.2;
  font-weight:900;
}

.legal-card p{
  margin:0 0 14px;
  color:#516879;
  font-size:16px;
  line-height:1.65;
}

.legal-card ul,
.legal-card ol{
  margin:0 0 18px;
  padding-left:22px;
  color:#516879;
  font-size:16px;
  line-height:1.65;
}

.legal-card li{
  margin-bottom:8px;
}

.legal-card strong{
  color:var(--primary);
  font-weight:900;
}

.legal-card a{
  color:var(--blue);
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}


/* =========================================================
   4. INFO BOXES
========================================================= */

.legal-note{
  margin:22px 0;
  padding:18px;
  border-radius:22px;
  background:#f3f9fc;
  border:1px solid var(--line);
  color:var(--primary);
  font-size:15px;
  font-weight:800;
  line-height:1.5;
}

.legal-warning{
  margin:22px 0;
  padding:18px;
  border-radius:22px;
  background:#fff6d8;
  border:1px solid #f3df9c;
  color:#8a6400;
  font-size:15px;
  font-weight:800;
  line-height:1.5;
}


/* =========================================================
   5. BACK LINK
========================================================= */

.legal-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  color:var(--primary);
  font-size:15px;
  font-weight:900;
}

.legal-back span{
  font-size:22px;
  line-height:1;
}


/* =========================================================
   6. LEGAL MENU
========================================================= */

.legal-menu{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.legal-menu-card{
  width:100%;
  min-height:68px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--soft-shadow);
  padding:0 18px;
  color:var(--primary);
  font-size:18px;
  font-weight:850;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.legal-menu-card span:last-child{
  color:#9aa8b5;
  font-size:28px;
  line-height:1;
}

.legal-menu-card:active{
  transform:scale(.98);
  background:#f7fafc;
}

/* =========================================================
   LEGAL TOPBAR
========================================================= */

.legal-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:26px;
}

.legal-home{
  color:var(--blue);
  font-size:18px;
  font-weight:900;
  text-decoration:none;
}

.legal-back-account{
  color:var(--primary);
  font-size:15px;
  font-weight:850;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
}

.legal-back-account span{
  font-size:20px;
}


/* =========================================================
   7. META
========================================================= */

.legal-meta{
  margin-top:20px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}


/* =========================================================
   8. BOTTOM NAVIGATION
========================================================= */

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,460px);
  height:82px;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  backdrop-filter:blur(18px);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  z-index:35;
}

.bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#8a98a6;
  font-size:12px;
  font-weight:650;
  text-decoration:none;
}

.bottom-nav svg,
.bottom-nav i{
  width:25px;
  height:25px;
  stroke-width:2;
}

.bottom-nav small{
  font-size:12px;
  font-weight:650;
}

.bottom-nav a.active{
  color:var(--blue);
}


