/* ============================================================
   FOOTER — reusable across pages.

   Built entirely on the shared design tokens + @font-face rules
   already defined in styles.css, so it inherits the site's colour,
   type and easing with zero duplication.

   To reuse on a new page:
     1. <link rel="stylesheet" href="styles.css">   (tokens + fonts)
     2. <link rel="stylesheet" href="footer.css">
     3. Drop in the <footer class="footer"> markup before </body>.

   Same language as the rest of the site: one content column on the
   64rem grid, hairline rules carry the structure (no cards, no
   boxes), and a muted-to-white hover hierarchy that mirrors the nav.
   ============================================================ */
.footer {
  background-color: var(--gray-1);
  padding: 5rem 2.5rem 2.5rem;
  border-top: 1px solid var(--border);     /* the rule that seats the footer */
}
.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
}

/* ---- top tier: brand + link columns ---- */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

/* ---- brand block ---- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 22rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}
.footer-logo-mark {
  display: flex;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--white);
}
.footer-logo-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.footer-logo-word {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
  color: var(--white);
}
.footer-tagline {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.4;          /* a two-line couplet — tighter leading binds it as one statement */
  color: var(--gray-10);
}

/* ---- social row (minimal: bare icons, not the nav's tiled buttons) ---- */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-10);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { color: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 100%; height: 100%; display: block; }

/* ---- link columns ---- */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col_title {
  margin: 0 0 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray-12);          /* title = the bright anchor, like a nav-row_title */
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-link {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--gray-10);          /* muted, like a nav-row_desc … */
  transition: color 0.2s var(--ease);
}
.footer-link:hover { color: var(--white); }   /* … resolving to white on hover */

/* ---- bottom tier: copyright + legal row, then a full-width disclaimer ---- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;                    /* row, then the closing disclaimer beneath it */
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-disclaimer {               /* the quiet closing line — one line on desktop (fun.xyz) */
  margin: 0;
  text-align: center;
  font-size: 0.6875rem;            /* smaller than the copyright/legal tier — true fine print */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4); /* dimmer than the muted grey — recedes to the background */
}
.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-10);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal .footer-link { font-size: 0.8125rem; }

/* ============================================================
   Responsive — aligned to the site's existing breakpoints
   (720px products collapse · 540px small-screen).

   Mobile keeps a NORMAL footer (fun.xyz-style): the link columns
   stay vertical lists, arranged two across, with the whitespace
   pulled in — tighter paddings and gaps, nothing exotic.
   ============================================================ */
@media (max-width: 720px) {
  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 2.25rem;
  }
  .footer-brand { max-width: none; gap: 1rem; }

  /* vertical columns, all three on one row */
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }
  .footer-col_title { margin-bottom: 0.875rem; }
  .footer-list { gap: 0.625rem; }
}
@media (max-width: 540px) {
  .footer-bottom { gap: 1.25rem; padding-top: 1.5rem; }
  .footer-bottom_row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  .footer-disclaimer { text-align: left; }
}
