/**
 * ==========================================================================
 * VERIMUS DESIGN SYSTEM - FOOTER LAYOUT
 * ==========================================================================
 * 
 * Footer styling for the global site footer.
 * 
 * Structure:
 * - .global-footer        = Footer container
 * - .footer-copyright     = Copyright text
 * - .footer-links         = Legal/navigation links
 * 
 * Depends on: _variables.css
 * ==========================================================================
 */

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.global-footer {
  display: block;
  text-align: right;
  padding: var(--spacing-8) 20px 20px 0;
  margin-top: auto;
  font-size: var(--font-size-xs);
  color: var(--text-primary);
}

/* Footer paragraph */
.global-footer p {
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-1);
}

/* Footer links */
.global-footer a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition-base) var(--ease-in-out),
    text-decoration-color var(--transition-base) var(--ease-in-out);
}

.global-footer a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* Link separator */
.global-footer span.separator {
  margin: 0 var(--spacing-2);
  color: var(--gray-300);
}

/* ==========================================================================
   FOOTER BRANDING
   ========================================================================== */

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  color: var(--text-primary);
}

.footer-brand img {
  height: 16px;
  width: auto;
  opacity: 0.6;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark-mode .global-footer {
  color: var(--dark-text-primary);
}

.dark-mode .global-footer a {
  color: var(--dark-text-primary);
}

.dark-mode .global-footer a:hover {
  color: var(--color-primary);
}

.dark-mode .global-footer span.separator {
  color: var(--gray-600);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .global-footer p>span {
    display: block;
    padding-top: 5px;
  }
}

@media screen and (max-width: 767px) {
  .global-footer {
    flex-direction: column;
    padding: var(--spacing-4) var(--spacing-3);
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   PAGE-SPECIFIC FOOTER STYLES
   ========================================================================== */

/* Hide footer on specific pages */
body:not(.logged-in) .global-footer,
.page-template-sites .global-footer,
.page-template-login .global-footer,
.page-template-logged-out .global-footer,
.page-template-page-login .global-footer,
.page-template-page-register .global-footer {
  display: none;
}

/* 404 page footer - full width centered */
.error404 .global-footer {
  text-align: center;
}

/* Password reset pages */
.page-template-password-reset .global-footer,
.page-template-recovery-password .global-footer {
  text-align: center;
}

/* Registration page */
.page-template-registration-template .global-footer {
  text-align: center;
  padding: var(--spacing-4) 0;
}