footer {
  background-color: var(--blue);
  color: white;
  padding: 2.5rem 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-about,
.footer-contact,
.footer-social {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-about h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-contact address {
  font-style: normal;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--contrast);
  text-decoration: underline;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: var(--dark-contrast);
}

.footer-social h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-social ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 1rem;
}

.footer-social li {
  margin: 0;
}

.footer-social a {
  color: white;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255 255 255 / 0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  background-color: var(--contrast);
  color: var(--blue);
  outline: none;
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-legal {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-legal ul.legal-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-legal ul.legal-links li {
  margin: 0;
}

.footer-legal ul.legal-links a {
  color: var(--contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-legal ul.legal-links a:hover,
.footer-legal ul.legal-links a:focus {
  text-decoration: underline;
  color: var(--dark-contrast);
}
