.footer {
  color: var(--color-dark);
}

.footer-main {
  padding: 36px 32px 140px;
  background-color: #a5c9df;
  background-image: url("../images/footer.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.footer-layout {
  display: grid;
  grid-template-columns: 70px 365px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-logo img {
  display: block;
  width: 70px;
  height: auto;
}

.footer-newsletter h2 {
  margin: 0 0 60px;
  font-size: 20px;
  line-height: 1.2;
}

.newsletter-form {
  display: grid;
  gap: 18px;
}

.form-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
}

.form-field label span {
  color: #8b1e2a;
}

.form-field input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid #dce2e5;
  border-radius: 0;
  background-color: var(--color-page);
  color: var(--color-dark);
}

.newsletter-notice {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.newsletter-notice a {
  color: #064b70;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-message {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.form-message:empty {
  min-height: 1px;
}

.footer-navigation {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-left: 35px;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

/* Extra bottom space so the floating Donate button doesn't cover the text */
.footer-bottom {
  padding: 32px 32px 120px;
  background-color: #000;
  color: #d6d6d6;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.footer-legal a {
  font-size: 10px;
}

.footer-bottom-content p {
  flex-shrink: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}
