/* Common footer for template pages */
.template-footer {
  width: 100%;
  background: #f3f4f6;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-footer-box {
  width: min(1200px, 100%);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 10px 28px 12px;
  box-sizing: border-box;
}

.template-footer-top {
  min-height: 46px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.template-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
}

.template-footer-brand img {
  width: 28px;
  height: 28px;
}

.template-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.template-footer-links {
  color: #4b5563;
  text-decoration: none;
  font-size: 16px;
  line-height: 22px;
}

.template-footer-links:hover {
  color: #111827;
}

.template-footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 0 10px;
}

.template-footer-text {
  line-height: 20px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 900px) {
  .template-footer {
    padding-top: 12px;
  }

  .template-footer-box {
    width: 100%;
    padding: 10px 12px 12px;
  }

  .template-footer-top {
    flex-direction: column;
    align-items: center;
  }

  .template-footer-nav {
    justify-content: center;
    gap: 14px;
  }

  .template-footer-links {
    font-size: 14px;
  }
}
