/* ==========================================================================
   vxf — default_v2 footer (footer.html): brand row -> socials + app badges ->
   link grid -> legal. Split out of header.css. Keeps #footer/.footerHolder
   (absolute positioning + the wrapper padding JS contract) and the customizer
   vars --vod-footer-bg / --vod-footer-link / --vod-svg-color.
   ========================================================================== */
/* --------------------------------------------------------------------------
   vxf — Netflix-style footer (footer.html): socials -> link grid -> app
   badges -> legal. Keeps #footer/.footerHolder (absolute positioning + the
   wrapper padding JS contract) and the customizer vars --vod-footer-bg /
   --vod-footer-link / --vod-svg-color.
   -------------------------------------------------------------------------- */
.vxf {
  padding: 28px 0 18px;
  border-top: 1px solid var(--vxl-line);
}
/* top row: socials left, app badges right — no dead space */
.vxf__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 6px;
}
/* The markup also tags this row `.clearfix` (Bootstrap), whose ::after is a
   generated block — inside a flex container it becomes a phantom flex item.
   With justify-content:space-between that invisible item claimed the right
   slot and stranded the app badges in the middle. This is a flex row, so it
   never needed float-clearing; drop the pseudo so the apps sit flush right. */
.vxf__top::before,
.vxf__top::after {
  content: none;
}
.vxf__top .vxf__social,
.vxf__top .vxf__appList {
  margin-bottom: 0 !important;
}
.vxf__apps {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* socials — quiet by default, light up on hover */
.vxf .vxf__social li > a i,
.vxf .vxf__social li > a.svgIcon svg {
  color: var(--vod-footer-link);
  fill: var(--vod-footer-link);
  transition: color var(--vxl-dur-1) var(--vxl-ease), fill var(--vxl-dur-1) var(--vxl-ease);
}
.vxf .vxf__social li > a:hover i,
.vxf .vxf__social li > a:hover.svgIcon svg,
.vxf .vxf__social li > a.svgIcon:hover svg {
  color: var(--vod-white-color);
  fill: var(--vod-white-color);
}
/* DS motion contract: hover changes colour, nothing moves — the old
   translateY(-2px) lifts are gone. */
.vxf .vxf__social li {
  margin-right: 18px;
}
/* link grid — Netflix's small grey link columns */
.vxf__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 24px;
  margin: 14px 0 18px;
}
.vxf .vxf__link {
  font-size: 13px;
  color: var(--vod-footer-link);
  text-decoration: none;
}
.vxf .vxf__link:hover {
  color: var(--vod-white-color);
  text-decoration: underline;
}
/* app badges */
.vxf__appsTitle {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vod-footer-link);
  white-space: nowrap;
}
.vxf .vxf__appList li {
  margin-right: 14px;
}
.vxf .vxf__appList li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border-radius: var(--vxl-radius-md);
  background-color: var(--vxl-surface-1);
  border: 1px solid var(--vxl-line);
  transition: background-color var(--vxl-dur-1) var(--vxl-ease), border-color var(--vxl-dur-1) var(--vxl-ease);
}
.vxf .vxf__appList li > a:hover {
  background-color: var(--vxl-surface-2);
  border-color: var(--vxl-hover-line);
}
/* legal / footer text */
.vxf__legal {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--vxl-line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--vod-footer-link);
}
@media (max-width: 767.98px) {
  .vxf {
    padding: 22px 0 16px;
  }
  .vxf__links {
    grid-template-columns: repeat(2, 1fr);
  }
  .vxf__top {
    align-items: flex-start;
  }
  .vxf__apps {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}
body.rtl .vxf .vxf__social li,
body.rtl .vxf .vxf__appList li {
  margin-right: 0;
  margin-left: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .vxf .vxf__social li > a,
  .vxf .vxf__appList li > a {
    transition: none;
  }
  .vxf .vxf__social li > a:hover,
  .vxf .vxf__appList li > a:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Brand row — logo + tagline above the social/apps row
   -------------------------------------------------------------------------- */
.vxf__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.vxf__brand img {
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.vxf__tagline {
  font-size: 13px;
  color: var(--vod-footer-link);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Monochrome badges — the mixed-brand-color SVG soup is the single biggest
   "generic template" tell. Every glyph inside a badge (multicolor Android /
   gradient iOS included) is normalized to the footer link color; hover lifts
   to white. CSS `fill` outranks SVG presentation attributes, including
   url(#gradient) fills.
   -------------------------------------------------------------------------- */
.vxf .vxf__appList li > a svg,
.vxf .vxf__appList li > a svg path {
  fill: var(--vod-footer-link) !important;
  color: var(--vod-footer-link);
  transition: fill var(--vxl-dur-1) var(--vxl-ease), color var(--vxl-dur-1) var(--vxl-ease);
}
.vxf .vxf__appList li > a:hover svg,
.vxf .vxf__appList li > a:hover svg path {
  fill: var(--vod-white-color) !important;
  color: var(--vod-white-color);
}
.vxf .vxf__appList li > a .text-muted1 {
  color: var(--vod-footer-link);
}
.vxf .vxf__appList li > a:hover .text-muted1 {
  color: var(--vod-white-color);
}

/* --------------------------------------------------------------------------
   Safe areas (mobile web / PWA) — keep the legal bar clear of home indicators
   -------------------------------------------------------------------------- */
.vxf {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
