@layer design {
  .app-footer {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-default);
    color: var(--text-muted);
    font: var(--text-dense);
  }
  .app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
  }
  .app-footer a:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .app-footer a[aria-current='page'] {
    color: var(--text-primary);
  }
  .app-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .app-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    min-width: 0;
  }
  .app-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-weight: 600;
  }
  .app-footer-logo {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .app-footer-legal {
    margin: 0 0 0 auto;
  }
  .app-footer-appearance {
    display: inline-flex;
    align-items: center;
  }
  .app-footer-description {
    flex-basis: 100%;
    max-width: 60ch;
    margin: 0;
  }
  .app-footer-note {
    flex-basis: 100%;
    margin: 0;
  }
  /* A link inside the note's sentence keeps its underline: colour alone would not set it apart from the text. */
  .app-footer-note a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .app-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--control-md);
    min-height: var(--control-md);
  }
  /* The app's form fills this slot; the footer only gives it a readable measure. */
  .app-footer-newsletter {
    min-width: 0;
    max-width: 28rem;
  }
  .app-footer-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4) var(--space-6);
  }
  .app-footer-group h2 {
    margin: 0 0 var(--space-2);
    color: var(--text-secondary);
    font: var(--text-dense);
    font-weight: 600;
  }
  .app-footer-group ul {
    display: grid;
    gap: var(--space-1);
  }
  @media (max-width: 520px) {
    .app-footer-legal {
      margin-inline-start: 0;
      flex-basis: 100%;
    }
  }
}
