.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-padding) 2.5rem;
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "contact"
    "links"
    "tagline"
    "branding";
  gap: 48px;
  max-width: 1360px;
  margin: 0 auto;
}

.footer__main {
  grid-area: main;
}

.footer__copyright {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  max-width: 384px;
  font-size: 16px;
  line-height: 1.6;
}

.footer__contact {
  grid-area: contact;
}

.footer__contact-label {
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-email {
  font-weight: 700;
  font-size: 18px;
  color: inherit;
  text-decoration: none;
}

.footer__contact-email:hover {
  text-decoration: underline;
}

.footer__links {
  grid-area: links;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.footer__link-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
}

.footer__link-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.footer__link:hover .footer__link-icon {
  transform: translateX(4px);
}

.footer__tagline {
  grid-area: tagline;
  display: flex;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.footer__branding {
  grid-area: branding;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
}

.footer__branding-title {
  font-size: clamp(3rem, 15vw, 15.625rem);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  letter-spacing: -0.05em;
  white-space: nowrap;
  margin: 0;
  padding: 2rem 0 1rem;
}

.footer__branding-logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer__branding-creator {
  font-weight: 500;
  font-size: 1rem;
}

.footer__branding-disclaimer {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
}

.footer__branding-disclaimer-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.8;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__branding-disclaimer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer__branding-disclaimer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__branding-disclaimer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__branding-disclaimer-separator {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
      "main contact links"
      "main tagline tagline"
      "branding branding branding";
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: var(--section-padding-sm) 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer__branding-title {
    font-size: clamp(2.5rem, 12vw, 8rem);
    padding: 1.5rem 0 1rem;
    line-height: 0.8;
  }
}

@media (max-width: 768px) {
  .footer__branding-logo-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer__branding-creator {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .footer__branding-disclaimer {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer__branding-disclaimer-text {
    font-size: 0.8125rem;
  }

  .footer__branding-disclaimer-links {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .footer__branding-disclaimer-separator {
    display: none;
  }
}
