/* ==========================================================================
   Footer legal de TDConta — admin/content/footer_legal.php
   Hoja independiente de admin/css/legal.css: el footer aparece en las 94
   pantallas que incluyen content/head.php, y esas no cargan legal.css.
   ========================================================================== */

.td-footer {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 16px 20px;
  border-top: 1px solid #E3E6EC;
  border-bottom: 1px solid #E3E6EC;
  background: #F7F8FA;
  text-align: center;
}

.td-footer-copy {
  font-size: 13px;
  line-height: 1.5;
  color: #6B7280;
}

.td-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.td-footer-links a {
  font-size: 13px;
  line-height: 1.5;
  color: #3C4A6B;
  text-decoration: none;
}

.td-footer-links a:hover,
.td-footer-links a:focus {
  color: #7C5FF8;
  text-decoration: underline;
}

/* Separador "·" entre enlaces, igual que en el texto aprobado. */
.td-footer-links a + a::before {
  content: "\00B7";
  margin: 0 9px;
  color: #B8BEC9;
}

.td-footer-links a:focus-visible {
  outline: 2px solid #3BC4FF;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .td-footer {
    padding: 14px 16px;
  }

  .td-footer-copy,
  .td-footer-links a {
    font-size: 12px;
  }

  .td-footer-links a + a::before {
    margin: 0 6px;
  }
}

/* ==========================================================================
   Layout de las paginas publicas de autenticacion (login y recuperacion).
   Sin esto, .login-layout y section.container ocupan 100vh cada uno y el
   footer queda bajo el fold. Los selectores son mas especificos que los de
   login.css y recover.css, asi que no hace falta tocar esas hojas.
   ========================================================================== */

.td-auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.td-auth-page > .login-layout,
.td-auth-page > section.container {
  flex: 1 0 auto;
  min-height: 0;
}

.td-auth-page .td-footer {
  flex-shrink: 0;
}
