/* Shared footer for calculator tool pages — lives inside .agreement-main (never under sidebar) */

.ra-site-footer {
  box-sizing: border-box;
  width: 100%;
  margin-top: 2rem;
  padding: 2rem 1rem 1.75rem;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: #374151;
}

.ra-site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.ra-site-footer__brand {
  flex: 1 1 200px;
  min-width: 0;
}

.ra-site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #111827;
}

.ra-site-footer__logo-img {
  display: block;
  flex-shrink: 0;
}

.ra-site-footer__wordmark-light {
  font-weight: 300;
}

.ra-site-footer__wordmark-bold {
  font-weight: 700;
}

.ra-site-footer__tagline {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
  max-width: 22rem;
}

.ra-site-footer__quick {
  flex: 1 1 240px;
  min-width: 0;
  text-align: center;
}

.ra-site-footer__contact {
  flex: 1 1 200px;
  min-width: 0;
  text-align: right;
}

.ra-site-footer__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #374151;
}

.ra-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ra-site-footer__links a {
  color: #2563eb;
  text-decoration: none;
}

.ra-site-footer__links a:hover {
  text-decoration: underline;
}

.ra-site-footer__sep {
  color: #9ca3af;
  user-select: none;
}

.ra-site-footer__email-line {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.ra-site-footer__email-line a {
  color: #2563eb;
  text-decoration: none;
}

.ra-site-footer__email-line a:hover {
  text-decoration: underline;
}

.ra-site-footer__btn-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #2c3e7c;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.ra-site-footer__btn-report:hover {
  background: #1e2d5c;
  color: #fff;
}

.ra-site-footer__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ra-site-footer__divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: #e5e7eb;
}

.ra-site-footer__bottom {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1.25rem;
  text-align: center;
}

.ra-site-footer__disclaimer {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: #4b5563;
}

.ra-site-footer__copyright {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ra-site-footer__contact {
    text-align: left;
  }

  .ra-site-footer__quick {
    text-align: left;
  }

  .ra-site-footer__links {
    justify-content: flex-start;
  }
}

/* Smartphone: compact vertical stack — avoid space-between in column (it stretches sections apart) */
@media (max-width: 767px) {
  .agreement-main .ra-site-footer {
    flex-grow: 0;
    flex-shrink: 0;
  }

  .ra-site-footer {
    margin-top: 1.25rem;
    padding: 1.125rem 1rem 1.125rem;
  }

  .ra-site-footer__top {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .ra-site-footer__brand,
  .ra-site-footer__quick,
  .ra-site-footer__contact {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .ra-site-footer__tagline {
    margin-top: 0.45rem;
  }

  .ra-site-footer__section-title {
    margin: 0 0 0.5rem;
  }

  .ra-site-footer__email-line {
    margin: 0 0 0.5rem;
  }

  .ra-site-footer__divider {
    margin: 0;
  }

  .ra-site-footer__bottom {
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .ra-site-footer {
    padding: 1rem 0.75rem 1rem;
  }
}
