/* ============================================================
   LEGAL PAGE  .legal  (privacy-policy/index.html)
   Plain reading page: one narrow column of text, no animation.
   ============================================================ */

.legal {
  padding: 6rem 0;
}

.legal__inner {
  max-width: 720px;
}

.legal__back {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--color-gray);
  font-size: 0.9rem;
}

.legal__back:hover {
  text-decoration: underline;
}

.legal__title {
  font-size: 3rem;
  line-height: 1.1;
}

.legal__updated {
  margin: 0.5rem 0 2.5rem;
  font-size: 0.9rem;
}

.legal h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.legal p + p {
  margin-top: 1rem;
}

.legal__list {
  margin: 1rem 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal__list li + li {
  margin-top: 0.5rem;
}

.legal a {
  text-decoration: underline;
}

.legal a.legal__back {
  text-decoration: none;
}

/* ---- EN / ES switch: small pill fixed in the top right corner ---- */
.legal-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  box-shadow: 0 1px 3px #0000001a;
}

.legal-switch[hidden] {
  display: none;
}

.legal-switch__btn {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-gray);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}

.legal-switch__btn:hover {
  color: var(--color-text);
}

/* the active language: white "thumb", like an Apple segmented control */
.legal-switch__btn[aria-pressed="true"] {
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 1px 3px #00000026;
}

.legal-switch__btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .legal {
    padding: 4rem 0;
  }

  .legal-switch {
    top: 12px;
    right: 12px;
  }

  .legal__title {
    font-size: 2.2rem;
  }
}
