/* STNF site footer — desktop row + mobile stack (single HTML) */

#footer {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  padding: 1.75rem 25px 2rem;
  background-color: #000;
  border-top: 1px solid #222;
}

#footer .footer-inner {
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#footer .footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 1rem;
}

#footer .footer-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

#footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

#footer #footer-stratio-logo {
  display: block;
  width: clamp(140px, 42vw, 260px);
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: center;
}

#footer .footer-copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  color: #545454;
}

#footer .footer-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #545454;
}

#footer .footer-address,
#footer .footer-contact {
  max-width: 22rem;
}

#footer .footer-address-lines {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #545454;
}

#footer .footer-email-link {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #545454;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

#footer .footer-legal {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #545454;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Duplicate Privacy Policy: under copyright on desktop; after contact stack on mobile */
#footer .footer-legal--desktop {
  display: none;
  margin-top: 0.35rem;
  align-self: center;
}

#footer .footer-legal--mobile {
  display: inline-block;
}

#footer .footer-legal:hover {
  color: #e6263d;
}

#footer .footer-email-link:hover {
  color: #ffffff;
}

#footer .footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

#footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 0;
  border-radius: 4px;
}

#footer .footer-social a:focus-visible {
  outline: 2px solid #00beeb;
  outline-offset: 3px;
}

#footer .footer-social img {
  width: clamp(28px, 5.5vw, 44px);
  height: clamp(28px, 5.5vw, 44px);
  display: block;
  flex-shrink: 0;
}

@media only screen and (max-width: 600px) {
  #footer .footer-social {
    gap: 0.35rem;
  }
}

#footer .footer-email-link:focus-visible {
  color: #ffffff;
  outline: 2px solid #00beeb;
  outline-offset: 3px;
  border-radius: 2px;
}

#footer .footer-legal:focus-visible {
  outline: 2px solid #00beeb;
  outline-offset: 3px;
  border-radius: 2px;
}

@media only screen and (min-width: 950px) {
  #footer .footer-legal--desktop {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0;
  }

  #footer .footer-legal--mobile {
    display: none;
  }

  #footer {
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
    min-height: 200px;
    display: flex;
    align-items: center;
  }

  #footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  #footer .footer-main {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    align-items: stretch;
    gap: 0.35rem;
  }

  #footer .footer-columns {
    align-items: stretch;
    text-align: left;
  }

  #footer .footer-brand {
    align-items: flex-start;
  }

  #footer #footer-stratio-logo {
    object-position: left center;
    max-height: 22px;
  }

  #footer .footer-copyright {
    font-size: 14px;
  }

  #footer .footer-label {
    font-size: 11px;
  }

  #footer .footer-address-lines,
  #footer .footer-email-link,
  #footer .footer-legal {
    font-size: 14px;
  }

  #footer .footer-address,
  #footer .footer-contact {
    max-width: none;
  }

  #footer .footer-social {
    flex-shrink: 0;
    justify-content: flex-end;
  }

  @supports (grid-template-columns: subgrid) {
    #footer .footer-main {
      display: grid;
      grid-template-columns: minmax(10.5rem, 1.2fr) minmax(0, 1fr) minmax(
          0,
          1fr
        );
      grid-template-rows: auto;
      column-gap: clamp(1rem, 2.5vw, 2.25rem);
      row-gap: 0;
      align-items: center;
    }

    #footer .footer-columns {
      display: grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      grid-row: 1;
      gap: 0;
    }

    #footer .footer-brand {
      grid-column: 1;
    }

    #footer .footer-address {
      grid-column: 2;
    }

    #footer .footer-contact {
      grid-column: 3;
    }
  }

  @supports not (grid-template-columns: subgrid) {
    #footer .footer-columns {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: flex-start;
      gap: clamp(1rem, 2.5vw, 2.25rem);
    }

    #footer .footer-brand,
    #footer .footer-address,
    #footer .footer-contact {
      flex: 1 1 0;
      min-width: 8rem;
    }
  }
}

@media only screen and (min-width: 950px) and (max-width: 1330px) {
  #footer .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  #footer .footer-social {
    justify-content: flex-start;
    margin-top: 0.25rem;
  }
}
