/*
 * r39-foot: the site footer (Nathan's footer design, 25 Nov 2026).
 *
 * Five even columns on a 1200px container. Products and Use cases run the full height;
 * By teams, Resources and Company each carry a second group underneath
 * (Free tools, Compare, Get in touch), and those second groups start on one shared line.
 * Under the columns, one hairline and a single bar: the lockup and legal line at the left,
 * the policies at the right.
 *
 * The markup uses its own `ef-ft__*` classes so the older footer rules (ef-footer__*,
 * r24a-foot, r17-foot) and the phone accordion in r22.js (which looks for .ef-footer__nav)
 * no longer touch it. The <footer> keeps `ef-footer` for its dark ground and padding, and
 * for track.js, which tags footer clicks.
 */

.ef-ft .ef-ft__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "prod cases teams res co"
    "prod cases tools cmp ct";
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 44px;
}

.ef-ft .ef-ft__g--prod { grid-area: prod; }
.ef-ft .ef-ft__g--cases { grid-area: cases; }
.ef-ft .ef-ft__g--teams { grid-area: teams; }
.ef-ft .ef-ft__g--tools { grid-area: tools; }
.ef-ft .ef-ft__g--res { grid-area: res; }
.ef-ft .ef-ft__g--cmp { grid-area: cmp; }
.ef-ft .ef-ft__g--co { grid-area: co; }
.ef-ft .ef-ft__g--ct { grid-area: ct; }

/* Group heading: small, quiet. */
.ef-ft .ef-ft__h {
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.ef-ft .ef-ft__l {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The li carries the line box, so the inherited body line-height cannot stretch the rows. */
.ef-ft .ef-ft__l li { margin: 0; padding: 0; font-size: 15px; line-height: 1.4; }

.ef-ft .ef-ft__l a,
.ef-ft .ef-ft__addr a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ef-ft .ef-ft__l a:hover,
.ef-ft .ef-ft__addr a:hover { color: rgba(255, 255, 255, 0.7); }

/* Get in touch: the address in the quiet ink, then email, phone and LinkedIn as links. */
.ef-ft .ef-ft__addr {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  font-style: normal;
  line-height: 1.4;
}

.ef-ft .ef-ft__addr-lines {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.ef-ft .ef-ft__addr-lines span { display: block; }

/*
 * The bar under the columns: two centred rows with even gaps
 * (Nathan, 24 Nov 2026).
 *   Row 1: logo, copyright, ABN, agent number, DSP listing.
 *   Row 2: the legal links.
 * The legal <p> uses display: contents so its <span>s become row 1 items
 * next to the logo, and each row sits as one centred group.
 */
.ef-ft .ef-ft__bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  margin-top: 62px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ef-ft .ef-ft__id {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.ef-ft .ef-ft__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.ef-ft .ef-ft__mark { width: 26px; height: 26px; flex: none; }
.ef-ft .ef-ft__word { display: block; width: 68px; height: auto; }

.ef-ft .ef-ft__legal,
.ef-ft .ef-ft__legal > span,
.ef-ft .ef-ft__pol a {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.ef-ft .ef-ft__legal { display: contents; margin: 0; }
.ef-ft .ef-ft__legal > span { white-space: nowrap; }

.ef-ft .ef-ft__pol ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-ft .ef-ft__pol a { text-decoration: none; transition: color 0.15s ease; }
.ef-ft .ef-ft__pol a:hover { color: #fff; }

/* Tablet and phone: two columns, groups in reading order. */
@media (max-width: 900px) {
  .ef-ft .ef-ft__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "prod cases"
      "teams tools"
      "res cmp"
      "co ct";
    grid-template-rows: none;
    row-gap: 40px;
  }

  .ef-ft .ef-ft__bar { margin-top: 48px; }

  /* Too narrow to spread in one line: wrap and centre each row instead. */
  .ef-ft .ef-ft__id,
  .ef-ft .ef-ft__pol ul { justify-content: center; }
  .ef-ft .ef-ft__logo { flex-basis: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .ef-ft .ef-ft__grid { column-gap: 20px; }
  /* Phones: one item per line, centred. */
  .ef-ft .ef-ft__id { flex-direction: column; gap: 8px; }
  .ef-ft .ef-ft__logo { margin-bottom: 6px; }
  /* Legal links as a centred 2 x 2 block, so none sits alone on a line. */
  .ef-ft .ef-ft__pol ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    justify-items: center;
    gap: 10px 36px;
  }
}

/* Link to ASIC's Digital Service Provider listing inside the legal line. */
.ef-ft .ef-ft__legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.ef-ft .ef-ft__legal a:hover { color: #fff; }
