/* Shared legal links: privacy policy + terms.
   Two variants — integrated inside an existing footer, or a slim standalone bar
   on templates that render without a footer. */

.legal-bar {
  background: #ffffff;
  border-top: 1px solid rgba(18, 77, 89, 0.12);
  padding: 14px 16px;
}

.legal-bar__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #5c6f7a;
}

.legal-bar__inner .legal-sep {
  opacity: 0.45;
  user-select: none;
}

.legal-bar a,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #124d59;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.legal-bar a:hover,
.legal-bar a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #0b6b45;
  background: rgba(18, 130, 79, 0.08);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-bar a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid #12824f;
  outline-offset: 2px;
}

/* Variant used inside an existing <footer> block. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.28);
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal .legal-sep {
  opacity: 0.5;
  user-select: none;
}

.footer-legal a {
  color: inherit;
  opacity: 0.9;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  /* The floating WhatsApp CTA is fixed to the bottom of the viewport on mobile,
     so the legal links need clearance to stay tappable. */
  .legal-bar {
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .footer-legal {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .legal-bar__inner,
  .footer-legal {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-bar a,
  .footer-legal a {
    transition: none;
  }
}
