/*
 * IslandTravelAtlas footer typography
 *
 * Footer headings use h2 for document structure. These component-specific
 * rules prevent the global page-heading scale from making those labels huge.
 */

body.rf-theme .rf-footer {
  font-size: 1rem;
}

body.rf-theme .rf-footer .rf-footer-main {
  align-items: start;
}

/* Footer wordmark */
body.rf-theme .rf-footer .rf-brand-copy strong {
  font-size: 1rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em;
}

body.rf-theme .rf-footer .rf-brand-copy small {
  font-size: 0.61rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0.07em;
}

body.rf-theme .rf-footer .rf-footer-brand p {
  max-width: 40ch;
  margin-top: 1rem;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  text-wrap: pretty;
}

/* Footer column labels: override body.rf-theme h2 at all breakpoints. */
body.rf-theme .rf-footer .rf-footer-column h2 {
  margin: 0 0 0.55rem !important;
  font-family: var(--rf-sans, sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
  text-wrap: nowrap;
}

body.rf-theme .rf-footer .rf-footer-column {
  min-width: 0;
  gap: 0.48rem;
}

body.rf-theme .rf-footer .rf-footer-column a {
  font-size: 0.87rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}

/* Legal and verification row */
body.rf-theme .rf-footer .rf-footer-bottom p,
body.rf-theme .rf-footer .rf-footer-bottom a,
body.rf-theme .rf-footer .rf-footer-bottom button {
  font-size: 0.72rem !important;
  line-height: 1.5 !important;
}

body.rf-theme .rf-footer .rf-footer-bottom p {
  max-width: 66ch;
}

@media (max-width: 900px) {
  body.rf-theme .rf-footer .rf-footer-main {
    gap: 2rem 3rem;
    padding-top: 3.25rem;
  }

  body.rf-theme .rf-footer .rf-footer-brand p {
    max-width: 54ch;
  }
}

@media (max-width: 680px) {
  body.rf-theme .rf-footer .rf-footer-main {
    gap: 1.75rem;
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
  }

  body.rf-theme .rf-footer .rf-footer-column h2 {
    font-size: 0.69rem !important;
  }

  body.rf-theme .rf-footer .rf-footer-column a {
    font-size: 0.84rem !important;
  }

  body.rf-theme .rf-footer .rf-footer-brand p {
    font-size: 0.86rem !important;
  }

  body.rf-theme .rf-footer .rf-footer-bottom p,
  body.rf-theme .rf-footer .rf-footer-bottom a,
  body.rf-theme .rf-footer .rf-footer-bottom button {
    font-size: 0.69rem !important;
  }
}
