/* The download pages' footer (footer.js writes its markup), shared by index.html and 404.html.
   Its markup and badges follow SiteFooter.vue in the app, so a change there comes here too. */
footer.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  padding: 54px 0 28px;
  color: var(--muted-text-color);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  padding-bottom: 34px;
}

.footer-links {
  display: flex;
  gap: 72px;
}

/* decorative: keep a drag across the footer from highlighting the logo and badges */
.footer-brand > svg,
.footer-trust {
  -webkit-user-select: none;
  user-select: none;
}

.footer-brand > svg {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

/* trust badges, same as SiteFooter.vue in the app. 1fr tracks in a shrink-to-fit grid
   all take the widest badge's width, so both boxes come out the same length */
.footer-trust {
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 16px 3px 8px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 10%, transparent), transparent 70%), var(--surface-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.trust-seal {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--primary-color) 30%, transparent));
}

.seal-stop-light {
  stop-color: color-mix(in srgb, var(--primary-color) 88%, white);
}

.seal-stop-dark {
  stop-color: color-mix(in srgb, var(--primary-color) 80%, black);
}

.seal-white {
  fill: #ffffff;
}

.seal-top,
.seal-band,
.seal-bottom {
  font-family: inherit;
  text-anchor: middle;
}

.seal-top {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.seal-band {
  fill: color-mix(in srgb, var(--primary-color) 80%, black);
  font-size: 8.6px;
  font-weight: 800;
}

.seal-bottom {
  fill: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.check-badge {
  stroke: var(--surface-color);
  stroke-width: 4;
}

.check-mark {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trust-text strong {
  color: var(--text-color);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trust-text span {
  margin-top: 2px;
  color: var(--muted-text-color);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col h2 {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-color);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--muted-text-color);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.86rem;
}

.footer-legal {
  margin: 0;
}

.footer-legal-links {
  white-space: nowrap;
}

.footer-legal a {
  color: var(--muted-text-color);
  text-decoration: none;
}

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

.footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--primary-color);
}

.footer-social a:hover {
  background-color: var(--primary-color-tint);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* the viewBox is cropped to the glyph so it sits centred in the hover circle; it is
   narrower than square, so size it by height only (same as SiteFooter.vue) */
.footer-social svg.icon-blog {
  width: auto;
  height: 13px;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-links {
    gap: 56px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-trust {
    display: grid;
    grid-auto-flow: row;
    gap: 12px;
  }

  .footer-copy {
    display: block;
    margin-bottom: 6px;
  }

  .footer-legal-links .footer-sep:first-child {
    display: none;
  }
}

/* right-to-left (Arabic) */
[dir='rtl'] .trust-badge {
  padding: 3px 8px 3px 16px;
}
