/* ── Footer ─────────────────────────────────────────────────
   Marketing chrome for signed-out pages (views/chrome.js): the brand and its
   channels on the left, three link columns on the right, the legal line
   underneath. */

.footer {
  /* Longhand: the footer is also a .shell, and the padding shorthand would
     zero out the side gutters and push its content to the screen edges. */
  margin-top: auto;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--subtle);
  font-size: 14px;
}

/* The rule sits on the content, not the .shell box, so it stops at the
   gutters instead of running into them. */
.footer-top {
  padding-top: 64px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .brand { color: var(--text); }
.footer-brand .socials { margin-left: -7px; margin-top: 4px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px 56px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-col-title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

/* Also used as an inline text button on the support page, hence the resets. */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  color: var(--subtle);
  font-size: inherit;
  cursor: pointer;
  transition: color 0.16s var(--ease);
}

.footer-link svg { width: 12px; height: 12px; opacity: 0.7; }
.footer-link:hover { color: var(--text); }
.footer-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .footer-top { padding-top: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { margin-top: 40px; }
}
