/* Shared footer component. Keep its styles here, never in a page stylesheet.
   Dedicated classes prevent page-specific section, title and button rules
   from changing the same component on different services. */
.service-footer {
  border-top: 1px solid var(--color-editorial-divider);
  background: var(--color-warm-paper);
  color: var(--color-supporting-text);
  font-family: var(--font-sans);
}

.service-footer__shell {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.service-footer__closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 6vw, 90px);
  background: var(--color-deep-navy);
  color: var(--color-light-surface);
}

.service-footer__closing::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(-470px, -26vw);
  width: clamp(520px, 46vw, 760px);
  height: clamp(520px, 46vw, 760px);
  border: 1px solid rgba(223, 232, 237, .34);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.service-footer__closing > .service-footer__shell {
  position: relative;
  z-index: 1;
}

.service-footer__title {
  max-width: 940px;
  margin: 0;
  color: var(--color-light-surface);
  font-size: var(--text-section-title);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.12;
}

.service-footer__description {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, .76);
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
}

.service-footer__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 1px solid rgba(255, 253, 248, .34);
  padding: 12px 22px;
  background: transparent;
  color: var(--color-light-surface);
  font-size: .95rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(255, 253, 248, .18);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.service-footer__button:hover {
  border-color: var(--color-light-surface);
  background: rgba(255, 253, 248, .08);
}

.service-footer .service-footer__button:focus-visible {
  outline: 2px solid var(--color-soft-blue);
  outline-offset: 4px;
}

.service-footer__details {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 24px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.52;
}

.service-footer__company,
.service-footer__legal {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.service-footer__brand {
  width: fit-content;
  color: var(--color-primary-ink);
  font-size: .95rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.service-footer__brand:hover { text-decoration: underline; }

.service-footer__legal { gap: 24px; }

.service-footer__details address { font-style: normal; }

.service-footer .service-footer__details a:focus-visible {
  outline: 2px solid var(--color-yelopa-navy);
  outline-offset: 4px;
}

.service-footer__details:focus-visible {
  outline: 2px solid var(--color-yelopa-navy);
  outline-offset: -4px;
}

@media (max-width: 760px) {
  .service-footer__title { font-size: clamp(1.85rem, 6vw, 2.4rem); }
}
