/* ==============================================
   lso_index_footer.css
   Footer styles for lso_index pre-login page
   ============================================== */

/* Footer container */
.index-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 20px 0 12px;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Legal links row */
.footer-link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-link-row a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
}
.footer-link-row a.bold {
  font-weight: 700;
  color: #374151;
}
.footer-link-row a:hover { color: #1b9e75; }

/* Brand + toggle + CS row */
.footer-meta-row {
  display: flex;
  align-items: center;    /* vertical center fix */
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;    /* vertical center fix */
  font-size: 13px;
  font-weight: 700;
  color: #1b9e75;
  line-height: 1;
  white-space: nowrap;
}

.btn-company-toggle {
  display: inline-flex;
  align-items: center;    /* vertical center fix */
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}
.btn-company-toggle:hover { color: #1b9e75; }

.arrow-icon {
  display: inline-block;
  transition: transform 0.2s;
}

.footer-cs-link {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}
.footer-cs-link:hover { color: #1b9e75; }

/* Company info accordion */
.company-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.company-details-inner {
  padding: 12px 16px;
  word-break: keep-all;       /* orphan fix */
  overflow-wrap: break-word;
  line-height: 1.7;
}

.company-details-inner p {
  margin: 0 0 4px 0;
  font-size: 12px;
  color: #64748b;
  word-break: keep-all;       /* orphan fix */
  overflow-wrap: break-word;
  /* Prevent iOS auto-link styling on text nodes */
  -webkit-text-size-adjust: 100%;
}

/* Override iOS auto-detected link styles (x-apple-data-detectors) */
.company-details-inner a[href^="tel"],
.company-details-inner a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

/* Wrapper span for numbers that may trigger auto-detection */
.no-detect {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  unicode-bidi: isolate;
}

/* Copyright */
.footer-copy {
  font-size: 12px;
  color: #94a3b8;
  margin: 8px 0 0;
}

/* Mobile */
@media (max-width: 480px) {
  .footer-meta-row {
    gap: 6px;
  }
  .footer-brand,
  .btn-company-toggle,
  .footer-cs-link {
    font-size: 12px;
  }
  .company-details-inner p {
    font-size: 11px;
  }
}
