.prefooter {
  background: var(--charcoal);
  color: #e8eaed;
  padding: 64px 0 48px;
}

.prefooter a { color: #e8eaed; transition: color 0.3s ease; }
.prefooter a:hover { color: #fff; }

.prefooter-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.prefooter-brand .brand-name {
  font-size: 28px;
  letter-spacing: 0.16em;
  color: #fff;
}

.prefooter-brand p,
.prefooter-brand li {
  margin: 0 0 8px;
  color: #c5c8ce;
  list-style: none;
}

.prefooter-brand ul { padding: 0; }

.prefooter h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.prefooter-main,
.prefooter-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prefooter-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }

.prefooter-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.prefooter-groups ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.prefooter-groups li { margin-bottom: 6px; }

.legal {
  min-height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  font-size: var(--meta);
  color: var(--muted);
}

.legal a { color: var(--muted); }

@media (max-width: 1024px) {
  .prefooter-top,
  .prefooter-groups { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .prefooter-top,
  .prefooter-groups,
  .prefooter-main { grid-template-columns: 1fr; }
  .legal { flex-direction: column; padding: 20px 0; }
}
