/* Sahtain site footer — matched to sahtain.sa <footer>
   Use px (Zid root font is often ~12px). */

.app > .footer {
  border-top: 1px solid #105ba821;
}

.sahtain-site-footer,
.sahtain-site-footer *,
.sahtain-site-footer *::before,
.sahtain-site-footer *::after {
  box-sizing: border-box;
}

.sahtain-site-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px var(--sahtain-shell-inset, 24px);
  background: #031226;
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  border: 0;
}

.sahtain-site-footer__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sahtain-site-footer__logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(220px, 70vw);
  margin: 0 auto 14px;
  object-fit: contain;
}

.sahtain-site-footer__sig {
  margin: 6px 0;
  color: #fff;
  font-size: 20.8px;
  font-weight: 900;
  line-height: 1.35;
}

.sahtain-site-footer__rights {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.sahtain-site-footer.is-ltr .sahtain-site-footer__sig,
.sahtain-site-footer.is-ltr .sahtain-site-footer__rights {
  direction: ltr;
}

.sahtain-site-footer.is-ltr {
  direction: ltr;
}

/* Columns: brand + links + policies + contact */
.sahtain-site-footer__top {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  text-align: start;
}

.sahtain-site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sahtain-site-footer__brand .sahtain-site-footer__logo {
  margin: 0 0 14px;
}

.sahtain-site-footer__title {
  margin: 0 0 14px;
  color: var(--sf-titles-color, #fff);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.sahtain-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sahtain-site-footer__links a {
  color: var(--sf-links-color, rgba(255, 255, 255, 0.72));
  font-size: 14.4px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sahtain-site-footer__links a:hover,
.sahtain-site-footer__links a:focus-visible {
  color: var(--sf-links-color, #fff);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sahtain-site-footer__contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sahtain-site-footer__label {
  color: var(--sf-links-color, #fff);
  opacity: 0.6;
  font-size: 12.8px;
}

.sahtain-site-footer__contact a {
  unicode-bidi: plaintext;
  text-align: right;
}

.sahtain-site-footer.is-ltr .sahtain-site-footer__contact a {
  text-align: left;
}

/* Bottom bar: business info + copyright */
.sahtain-site-footer__bottom {
  width: 100%;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: color-mix(in srgb, var(--sf-legal-color, #fff) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.sahtain-site-footer__bottom .sahtain-site-footer__rights {
  margin: 0;
}

.sahtain-site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--sf-legal-color, rgba(255, 255, 255, 0.55));
  font-size: 13.6px;
  line-height: 1.6;
}

.sahtain-site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sahtain-site-footer__legal a:hover {
  color: var(--sf-legal-color, #fff);
}

@media (max-width: 991px) {
  .sahtain-site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sahtain-site-footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .sahtain-site-footer__brand .sahtain-site-footer__logo {
    margin: 0 auto 14px;
  }
}

@media (max-width: 600px) {
  .sahtain-site-footer {
    padding: 40px 16px;
  }

  .sahtain-site-footer__logo {
    height: 48px;
  }

  .sahtain-site-footer__sig {
    font-size: 18.4px;
  }

  .sahtain-site-footer__rights {
    font-size: 12.8px;
  }

  .sahtain-site-footer__top {
    gap: 28px 20px;
  }

  .sahtain-site-footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .sahtain-site-footer__legal {
    justify-content: center;
  }
}
