/* The footer every public page shares: the main page, /legal, /references, /privacy and
   /terms. scripts/site-parts.js writes its markup into each of them, and this file is its
   whole look, so it reads the same on the policy pages too, whose own styles underline
   links, space out paragraphs and keep a narrower column. Hence the explicit margins and
   text-decoration below, and a width of its own instead of the page's .container.
   Colours and widths are the tokens in /brand.css. */
footer { background: var(--bg); padding: 56px 0 40px; border-top: 1px solid var(--line); line-height: 1.6; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 26px;
              display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 26px 40px; }
footer a, footer a:hover { text-decoration: none; }
.foot-brand { font-size: 24px; color: var(--ink); }
.foot-built { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
/* Columns of links, each under a small heading: Refology, Industries (one link per industry
   page that exists) and Legal. */
.foot-cols { display: flex; gap: 26px 72px; flex-wrap: wrap; padding-top: 4px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 140px; }
.foot-h { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.foot-col a { color: var(--muted); font-weight: 600; font-size: 16px; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--ink); }
.foot-copy { width: 100%; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }

@media (max-width: 768px) {
  .foot-inner { flex-direction: column; }
  .foot-cols { gap: 26px 48px; }
}
/* A phone has no room for three columns in a row. Wrapping alone gave 2+1 at 390px wide
   (Legal alone under Refology) and 1+1+1 at 375px, so instead the first column, the long
   one, takes the left half and the other two stack on the right, at any phone width. */
@media (max-width: 600px) {
  .foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .foot-col { min-width: 0; }
  .foot-col:first-child { grid-row: span 2; }
}
