/* =========================
   style-pages.css
   Legal Pages, Back-home, Mobile, About Grid, WhatsApp Float, Back-to-top
========================= */

/* =========================
   17) LEGAL PAGES (Privacy & Accessibility)
========================= */
.legal-page{
  background: #0f0f10;
  color: rgba(255,255,255,0.88);
  min-height: 100vh;
}

.legal-page main.container{
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.legal-page h1,
.legal-page h2{
  color: #ffffff;
}

.legal-page h1{
  margin-bottom: 24px;
}

.legal-page h2{
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li{
  line-height: 1.9;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.legal-page ul{
  padding-right: 18px;
}

.legal-page a{
  color: #9DC8B0;
  text-decoration: underline;
}

/* =========================
  18) Back to Home (Legal Pages)
========================= */
.back-home{
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 14px;
  color: #9DC8B0;
  text-decoration: none;
  opacity: 0.9;
  z-index: 1000;
}

.back-home:hover{
  text-decoration: underline;
  opacity: 1;
}

/* =========================
   MOBILE (ONLY ONE)
========================= */
@media (max-width: 768px){

  /* ABOUT – mobile */
  .about-grid{ gap: 18px; }
  .about-img{ max-width: 300px; }

  .about-text{ text-align: right; }

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

  body{
    font-size: 18px;
    padding-top: 66px;
  }

  /* nav heights */
  .top-nav{ height: 66px; }
  .top-nav-inner{ height: 66px; }

  /* brand sizing */
  .brand-logo{
    height: 50px;
    max-height: 50px;
    max-width: 160px;
    border-radius: 14px;
    padding: 7px 10px;
  }
  .brand-text{ font-size: 15px; max-width: 180px; }

  /* burger + menu */
  .nav-toggle{ display: inline-flex; }

  .nav-links{
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;

    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 18px;
    padding: 14px;

    flex-direction: column;
    gap: 22px;

    box-shadow: 0 18px 50px rgba(0,0,0,0.10);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-links.active{ display: flex; }

  .nav-links a{
    width: 100%;
    text-align: center;
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(255,255,255,0.50);
  }

  /* sections */
  section.container{
    margin: 28px 12px;
    padding: 48px 18px;
  }

  .hero{ height: 72vh; min-height: 72vh; }
  .contact-container{ grid-template-columns: 1fr; }

  body::before{
    background:
      linear-gradient(var(--bg-overlay-mobile), var(--bg-overlay-mobile)),
      url("../bg-mobile-768w.webp")
        center / cover no-repeat;
  }

  /* Clinic image – mobile */
  .clinic-image{
    max-width: 100%;
    margin-top: 20px;

    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  }
}

/* =========================
   9) ABOUT (Clean Layout)
========================= */
.about-grid{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "title"
    "text";
  gap: 26px;
  justify-items: center;
}

.about__media{ grid-area: media; width: 100%; display: flex; justify-content: center; }
.about__title{ grid-area: title; width: 100%; display: flex; justify-content: center; }
.about__text{  grid-area: text; width: 100%; max-width: 900px; margin: 0 auto; text-align: right; }

.about-img{
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(157, 200, 176, 0.25);
}

/* =========================
   19) WHATSAPP FLOATING BUTTON
========================= */
.whatsapp-float{
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: var(--wa-green);
  color: #fff;

  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover{
  background: var(--wa-green-dark);
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg{
  width: 30px;
  height: 30px;
}

/* =========================
   20) BACK-TO-TOP BUTTON
========================= */
.back-to-top{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 22px;
  text-decoration: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, opacity 0.3s ease, background 0.2s ease;

  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible{
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover{
  background: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
