.download-page .legal-main {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.download-page .legal-hero {
  max-width: 58rem;
}

.download-hero__meta {
  align-items: center;
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: .55rem;
  letter-spacing: .16em;
  margin-top: 1.15rem;
  text-transform: uppercase;
}

.download-hero__meta i {
  color: var(--primary);
  font-size: .78rem;
}

.download-card {
  max-width: 80rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.download-section__head {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.download-section__head h2 {
  margin-bottom: .4rem;
}

.download-section__head p {
  color: var(--muted-foreground);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 38rem;
}

.download-section__badge {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 800;
  gap: .45rem;
  letter-spacing: .12em;
  padding: .55rem .8rem;
  text-transform: uppercase;
}

.download-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.download-option {
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 92%, white 8%), color-mix(in srgb, var(--card) 96%, var(--background)));
  border: 1px solid color-mix(in srgb, var(--border) 85%, white 15%);
  border-radius: 1.05rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.download-option::before {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent), transparent);
  content: '';
  height: 1px;
  left: 10%;
  opacity: .4;
  position: absolute;
  right: 10%;
  top: 0;
}

.download-option:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .22);
  transform: translateY(-3px);
}

.download-option--featured {
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 12%, var(--card)), var(--card));
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.download-option--pending {
  opacity: .82;
}

.download-option__top {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.download-option__icon {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-radius: .8rem;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.download-option__icon--logo {
  height: 3rem;
  padding: .5rem .7rem;
  width: 8.5rem;
}

.download-option__icon--logo img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.download-option__icon--square-logo {
  padding: .35rem;
}

.download-option__icon--square-logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.download-option__eyebrow {
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin: .18rem 0 0;
  text-align: right;
  text-transform: uppercase;
}

.download-option h3 {
  color: var(--foreground);
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 1.25rem 0 .65rem;
}

.download-option > p {
  color: var(--muted-foreground);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}

.download-option__features {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.download-option__features li {
  align-items: center;
  color: var(--muted-foreground);
  display: flex;
  font-size: .82rem;
  gap: .6rem;
}

.download-option__features i {
  color: var(--primary);
  font-size: .75rem;
}

.download-option__button {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: .65rem;
  color: var(--primary-foreground);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .55rem;
  justify-content: center;
  margin-top: auto;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.download-option__button:hover,
.download-option__button:focus-visible {
  background: transparent;
  color: var(--primary);
}

.download-option__button--secondary {
  background: transparent;
  color: var(--foreground);
}

.download-option__button--secondary:hover,
.download-option__button--secondary:focus-visible {
  background: var(--primary);
  color: var(--primary-foreground);
}

.download-option__button.is-disabled {
  background: color-mix(in srgb, var(--muted-foreground) 12%, var(--card));
  border-color: var(--border);
  color: var(--muted-foreground);
  cursor: not-allowed;
  pointer-events: none;
}

.download-option__links {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
}

.download-option__links .download-option__button {
  margin-top: 0;
  min-width: 0;
}

.download-note {
  align-items: flex-start;
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: .85rem;
  color: var(--muted-foreground);
  display: flex;
  font-size: .84rem;
  gap: .7rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  padding: .9rem 1rem;
}

.download-note i {
  color: var(--primary);
  flex: 0 0 auto;
  margin-top: .2rem;
}

@media (max-width: 680px) {
  .download-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-option__links {
    grid-template-columns: 1fr;
  }
}
