/* Footer Bottom Section - Mobile Fixes */
.footer__bottom {
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}

.footer__copyright {
  text-align: center;
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

.footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

/* Ensure links wrap properly on mobile */
.footer__legal a {
  white-space: normal;
  word-break: break-word;
  display: inline-block;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5rem 2rem;
  }
  
  .footer__copyright {
    text-align: left;
    white-space: nowrap;
    width: auto;
  }
  
  .footer__legal {
    justify-content: flex-end;
    width: auto;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .footer__bottom {
    padding: 1.5rem 3rem;
  }
}

/* Ensure no overflow issues on mobile */
.footer {
  overflow: hidden;
}

/* Fix for mobile viewport units */
@supports (-webkit-touch-callout: none) {
  .footer {
    /* Prevent iOS viewport bug with 100vh */
    min-height: -webkit-fill-available;
  }
}
