/* ==========================================================================
   footer.css - Footer Component Styles (Shinyoung Lofarma)
   - PC Desktop (>= 850px): Pixel (px) Layout
   - Mobile / Tablet (< 850px): Comprehensive REM & Responsive Layout (1rem = 16px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) PC Base Footer Layout (>= 850px)
   -------------------------------------------------------------------------- */
.footer {
  background: #07111f;
  color: #c6d0dc;
  padding: 54px 0;
}

.footer-inner {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: 36px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.footer-top p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #a1b0c4;
}

.footer-menu {
  display: flex;
  gap: clamp(0.5rem, 1.8vw, 1.375rem);
  flex-wrap: wrap;
  align-items: center;
}

.footer-menu a {
  color: #e8eef6;
  font-weight: 750;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  white-space: nowrap;
  word-break: keep-all;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 34px;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.6;
}

.family {
  position: relative;
}

.family select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #111d2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat calc(100% - 20px) center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 12px 46px 12px 20px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.family select:hover,
.family select:focus {
  border-color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   2) Responsive Media Queries (< 850px / <= 767px) - REM Conversions
   ========================================================================== */

@media (max-width: 1180px) {
  .footer-inner {
    width: calc(100% - 2.5rem);
  }
}

@media (max-width: 849px) {
  .footer {
    padding: 2.5rem 0;
  }

  .footer-inner {
    width: calc(100% - 2rem);
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .footer-logo {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .footer-logo-img {
    max-height: 2.5rem !important;
  }

  .footer-top p {
    font-size: 0.875rem;
    margin-top: 0.375rem;
    line-height: 1.6;
  }

  .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1rem;
    margin-top: 0.5rem;
  }

  .footer-menu a {
    font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
    line-height: 1.5;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.25rem;
  }

  .footer-bottom p {
    font-size: 0.8125rem;
    line-height: 1.65;
    margin: 0.25rem 0;
  }

  .footer-bottom-right {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 0.5rem !important;
    flex-wrap: wrap !important;
  }

  .footer-privacy-link {
    font-size: 0.875rem !important;
    height: 2.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #e8eef6 !important;
  }

  .family {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .family select {
    margin: 0 !important;
    height: 2.5rem !important;
    padding: 0 2.25rem 0 0.875rem !important;
    line-height: 2.5rem !important;
    font-size: 0.8125rem !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    width: calc(100% - 1.5rem);
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer-top p {
    font-size: 0.8125rem;
  }

  .footer-menu a {
    font-size: 0.8125rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-privacy-link {
    font-size: 0.8125rem !important;
  }

  .family select {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 280px) {
  .footer-inner {
    width: 100%;
    padding: 0 0.5rem;
  }
}