/* Unified F3 ecosystem footer (F3, Course, EWS, Trainings) */

.ecosystem-disclaimer {
  background: #f0f4f8;
  border-top: 1px solid rgba(26, 82, 118, 0.12);
  padding: 1rem 1.25rem;
}

.ecosystem-disclaimer p {
  margin: 0 auto;
  max-width: var(--f3-max, 72rem);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #4a5568;
}

.ecosystem-footer {
  position: relative;
  width: 100%;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0;
  color: #495057;
}

.eco-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--eco-feedback-gutter, 1.25rem);
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.eco-footer__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.eco-footer__eu-logo {
  height: 2.75rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  flex-shrink: 0;
}

.eco-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.eco-footer__link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.3;
}

.eco-footer__link:hover,
.eco-footer__link:focus-visible {
  color: #1a5276;
  text-decoration: underline;
}

.eco-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.eco-footer__social-link:hover,
.eco-footer__social-link:focus-visible {
  color: #1a5276;
  background: rgba(26, 82, 118, 0.08);
}

.eco-footer__social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.eco-footer__right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.eco-footer__feedback {
  flex-shrink: 0;
  margin-left: auto;
}

.eco-footer__feedback:hover,
.eco-footer__feedback:focus-visible {
  color: #fff;
}

.eco-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

.eco-footer__legal-sep {
  color: #ced4da;
  user-select: none;
}

.eco-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #495057;
  font-size: 0.875rem;
}

.eco-footer__brand:hover,
.eco-footer__brand:focus-visible {
  color: #1a5276;
}

.eco-footer__brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

/* Local privacy banner (course landing hero) */
.local-privacy-banner {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 50px;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.local-privacy-banner__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.local-privacy-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.local-privacy-banner__copy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.local-privacy-banner__title {
  font-weight: 700;
  color: #fff;
}

.local-privacy-banner__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #155a75;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.local-privacy-banner__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: #a8f0e0;
}

.local-privacy-banner__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.local-privacy-banner__link:hover,
.local-privacy-banner__link:focus-visible {
  background: #fff;
  color: #0d3d52;
}

@media (max-width: 520px) {
  .local-privacy-banner__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .local-privacy-banner__link {
    align-self: flex-start;
  }
}

/* Legal / policy pages */
.legal-page {
  padding: 6.5rem 0 3rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .page-lead {
  color: #5a6a7a;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
  color: #334155;
}

.legal-page ul {
  padding-left: 1.25rem;
}

@media (max-width: 1024px) {
  .eco-footer__right {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem 0.85rem;
  }

  .eco-footer__feedback {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .eco-footer__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .eco-footer__left {
    flex: 1 1 100%;
  }

  .eco-footer__right {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }
}
