.footer {
  text-align: center;
  padding: 30px 20px 45px;
  /* Standardized padding for all landing pages */
  margin-top: auto;
  font-family: 'NanumSquare Neo', sans-serif;
  color: #888;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  background: transparent;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
}

.legal-links {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  /* Removed gap to use margins + separators */
  flex-wrap: nowrap;
  /* Force single line */
  padding: 0 10px;
  line-height: 1.6;
  width: 100%;
  overflow-x: auto;
  /* Handle overflow if ever needed explicitly, though we aim to fit */
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for cleaner look */
.legal-links::-webkit-scrollbar {
  display: none;
}

.legal-links a {
  color: #888;
  text-decoration: none;
  display: inline-block;
  font-size: 0.85rem;
  /* Standardized size */
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  /* Prevent shrinking */
  position: relative;
  padding: 0 12px;
  /* Symmetric padding for border-right logic */
  line-height: 1.2;
  /* Tighter height for better control */
  border: none !important;
  /* Kill inherited borders */
}

/* Single separator using border-right */
.legal-links a:not(:last-child) {
  border-right: 1px solid #ddd !important;
}

/* Defensive reset: Remove ANY pseudo-element separators that might be lingering */
.legal-links a::after,
.legal-links a::before {
  content: none !important;
  display: none !important;
}



.legal-links a:hover {
  color: #555;
  text-decoration: underline;
}

.legal-links a.pressed {
  transform: scale(0.95);
  opacity: 0.7;
}

.footer.is-simple .legal-links {
  display: none !important;
}

.footer.is-simple {
  padding-top: 15px;
  margin-top: auto;
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 45px;
    /* Zero side padding for edge-to-edge max width */
  }

  .legal-links {
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    justify-content: center;
    width: 100%;
    padding: 0;
    /* Remove generic padding */
  }

  .legal-links a {
    font-size: 13px;
    letter-spacing: -0.02em;
    padding: 0 8px;
    /* Balanced padding for mobile */
    white-space: nowrap;
  }

}

/* App-Specific Overrides (Apply to BOTH Desktop and Mobile)
   This ensures the footer looks "edge-to-edge" inside the app container
   regardless of screen size.
*/
.clay-container .footer,
.container .footer,
.app-container .footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.clay-container .footer .legal-links,
.container .footer .legal-links {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  padding: 0 !important;
}

.app-container .footer .legal-links {
  margin-left: -24px;
  margin-right: -24px;
  width: calc(100% + 48px);
  padding: 0 !important;
}

/* Force tighter mobile-style link spacing for apps on all screens */
.clay-container .footer .legal-links a,
.container .footer .legal-links a,
.app-container .footer .legal-links a {
  padding: 0 8px !important;
  font-size: 13px !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 480px) and (pointer: coarse) {
  .footer {
    padding-bottom: calc(45px + env(safe-area-inset-bottom));
  }
}