/* Shared mini footer (Web.Master). Everything is scoped to .tgmf / footer.tg-footer; logical properties keep RTL and LTR symmetrical.
   Layout: row 1 = brand (logo + SINCE 2013) | main links;  row 2 = copyright | legal links | country flags (black and white).
   The floating support button sits at the start edge (left in LTR, right in RTL), so the footer keeps a start-side gutter instead of letting content run under it. */

/* the old wrapper added 48px margin + 56px padding above the footer: gone */
footer.tg-footer { margin: 0; padding: 0; border: 0; background: transparent; }
footer.tg-footer > .tg-footer__container { max-width: none; padding: 0; margin: 0; }

.tgmf {
  --tgmf-teal: #378b95;
  --tgmf-teal-dark: #236d75;
  --tgmf-ink: #1f3d44;
  --tgmf-text: #4f646a;
  --tgmf-line: #e1e8e9;
  position: relative; z-index: 10; box-sizing: border-box;
  background: #f7f9f9;
  border-top: 1px solid var(--tgmf-line);
  padding: 18px 24px 14px;
  padding-inline-start: 96px;
  font-family: inherit;
}
.tgmf *, .tgmf *::before, .tgmf *::after { box-sizing: border-box; }
.tgmf a { text-decoration: none; color: inherit; }
.tgmf a:focus-visible { outline: 2px solid var(--tgmf-teal); outline-offset: 3px; border-radius: 3px; }

.tgmf-main, .tgmf-bottom { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.tgmf-bottom { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tgmf-line); }

/* brand */
.tgmf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tgmf-brand-link { display: flex; align-items: center; gap: 8px; color: inherit; }
.tgmf-logo-icon { width: 28px; height: 28px; object-fit: contain; flex: none; display: block; }
.tgmf-wordmark { width: 150px; max-width: 100%; height: auto; max-height: 34px; object-fit: contain; object-position: left center; display: block; }
[dir="rtl"] .tgmf-wordmark { object-position: right center; }
.tgmf-tagline { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: #5d7076; padding-inline-start: 12px; border-inline-start: 1px solid #cfdadc; line-height: 1.2; }
[dir="rtl"] .tgmf-tagline { letter-spacing: 0; }

/* main links */
.tgmf-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; font-weight: 600; color: var(--tgmf-ink); }
.tgmf-nav a:hover, .tgmf-legal a:hover { color: var(--tgmf-teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* bottom row */
.tgmf-copy, .tgmf-bottom > span { font-size: 12.5px; color: var(--tgmf-text); line-height: 1.5; }
.tgmf-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--tgmf-text); }
.tgmf-legal a { color: inherit; }

/* flags: one size, one gap, black and white */
.tgmf-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tgmf-flags a { display: block; width: 22px; height: 22px; line-height: 0; border-radius: 4px; }
.tgmf-flags img { width: 22px; height: 22px; object-fit: contain; display: block; filter: grayscale(1) contrast(1.05); opacity: .78; transition: opacity .15s; }
.tgmf-flags a:hover img, .tgmf-flags a:focus-visible img { opacity: 1; }

/* tablet */
@media (max-width: 900px) {
  .tgmf { padding: 16px 20px 14px; padding-inline-start: 88px; }
  .tgmf-main, .tgmf-bottom { justify-content: flex-start; }
  .tgmf-nav { gap: 6px 18px; }
  .tgmf-flags { width: 100%; }
}
/* mobile: stacked, centred, and clear of the floating support button */
@media (max-width: 600px) {
  .tgmf { padding: 16px 16px 76px; }
  .tgmf-main, .tgmf-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tgmf-brand { flex-wrap: wrap; row-gap: 6px; }
  .tgmf-tagline { border: 0; padding-inline-start: 0; }
  .tgmf-nav { width: 100%; gap: 8px 18px; }
  .tgmf-bottom { margin-top: 12px; padding-top: 12px; }
  .tgmf-flags { gap: 10px; }
}
