.footer {
  border-block-start: 1px solid var(--border-standard);
  background: var(--surface-primary);
}

.inner {
  display: grid;
  inline-size: min(100%, var(--container-wide));
  margin-inline: auto;
  padding-block: var(--space-12) var(--space-6);
  padding-inline: var(--layout-gutter);
  gap: var(--space-10);
}

.brandColumn {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  max-inline-size: 32rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 800;
}

.mark {
  display: inline-grid;
  min-inline-size: var(--size-touch-min);
  min-block-size: var(--size-touch-min);
  padding-inline: var(--space-2);
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--interactive-primary);
  color: var(--text-inverse);
  font-size: var(--type-caption-size);
}

.tagline,
.releaseNotice {
  margin: 0;
  color: var(--text-secondary);
}

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--space-8);
}

.group h2 {
  margin-block-end: var(--space-3);
  font-size: var(--type-label-size);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

html[dir='rtl'] .group h2 {
  letter-spacing: normal;
  text-transform: none;
}

.group ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  list-style: none;
}

.group a,
.pendingItem {
  display: inline-flex;
  min-block-size: var(--size-touch-min);
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  text-decoration: none;
}

.group a:hover {
  color: var(--interactive-primary);
  text-decoration: underline;
}

.pendingItem {
  flex-wrap: wrap;
  opacity: var(--opacity-disabled);
}

.legalLink {
  flex-wrap: wrap;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--border-standard);
  color: var(--text-subdued);
  font-size: var(--type-caption-size);
}

@media (min-width: 768px) {
  .inner {
    grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 2fr);
  }

  .bottom {
    grid-column: 1 / -1;
  }
}
