@layer components {
  .foot {
    margin-top: var(--s-6);
    padding-block: var(--s-6) var(--s-4);
    background: var(--ink);
    border-top: 1px solid var(--line);
  }
  .foot-top {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: 1fr;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .foot-brand .wordmark {
    font-size: 1.5rem;
  }
  .foot-brand p {
    margin-top: var(--s-2);
    max-width: 34ch;
    color: var(--muted);
    font-size: 0.92rem;
  }
  .foot-col h3 {
    margin-bottom: var(--s-2);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .foot-col ul {
    display: grid;
    gap: 0.6rem;
    font-size: 0.94rem;
  }
  .foot-col a {
    color: var(--muted);
  }
  .foot-col a:hover {
    color: var(--paper);
  }
  .foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-2);
    padding-top: var(--s-3);
    color: var(--muted);
    font-size: 0.84rem;
  }
  .foot-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .foot-legal a:hover {
    color: var(--accent);
  }

  @media (min-width: 52rem) {
    .foot-top {
      grid-template-columns: 1.6fr 1fr 1fr 1fr;
    }
  }

  /* cookie consent — bottom-left card */
  .consent-tray {
    position: fixed;
    left: var(--s-3);
    bottom: var(--s-3);
    z-index: 150;
    width: min(420px, calc(100vw - 2rem));
    padding: var(--s-3);
    background: hsl(202 22% 12%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(140%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .consent-tray[data-show="true"] {
    transform: translateY(0);
  }
  .consent-tray p {
    margin-bottom: var(--s-3);
    color: var(--muted);
    font-size: 0.9rem;
  }
  .consent-tray a {
    color: var(--accent);
    text-decoration: underline;
  }
  .consent-actions {
    display: flex;
    gap: var(--s-2);
  }
  .consent-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .consent-tray {
      transition: none;
    }
  }
}
