.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .65rem;
  padding: .65rem 1rem .85rem;
  color: var(--muted, #5f6368);
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}

.legal-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--text, #202124);
}

.legal-page {
  min-height: 100vh;
  margin: 0;
  color: #202124;
  background: #eef0f2;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page__shell {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-page__header {
  margin-bottom: 1rem;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: #33485c;
  font-weight: 700;
  text-decoration: none;
}

.legal-page__back:hover,
.legal-page__back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page h1,
.legal-page h2,
.legal-modal .legal-notice h2 {
  margin: 0;
  color: #1f2a34;
  font-family: Georgia, "Times New Roman", serif;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-page__lede {
  margin: .65rem 0 0;
  color: #4f5962;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-notice {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #c7ccd1;
  background: #fff;
  box-shadow: 0 8px 26px rgba(25, 33, 40, .08);
}

.legal-notice section {
  display: grid;
  gap: .45rem;
}

.legal-notice h2 {
  font-size: 1.08rem;
}

.legal-notice p {
  margin: 0;
  line-height: 1.65;
}

.legal-notice a {
  color: #315c7a;
  font-weight: 700;
}

.legal-notice__required {
  padding: .9rem 1rem;
  border-left: 4px solid #536b7e;
  background: #f1f4f6;
  font-weight: 700;
}

.legal-popover {
  display: grid;
  gap: 1rem;
  color: var(--text, #202124);
}

.legal-modal .modal-panel {
  width: min(860px, calc(100vw - 32px));
}

.legal-modal .legal-page__lede {
  margin: 0;
  color: var(--muted, #4f5962);
}

.legal-modal .legal-notice {
  padding: 0;
  border: 0;
  color: var(--text, #202124);
  background: transparent;
  box-shadow: none;
}

.legal-modal .legal-notice h2 {
  color: var(--text, #1f2a34);
}

.legal-modal .legal-notice a {
  color: var(--v3-accent, var(--steel-2, #315c7a));
}

.legal-modal .legal-notice__required {
  border-left-color: var(--v3-accent, var(--steel-2, #536b7e));
  background: var(--wash-4, #f1f4f6);
}

@media (max-width: 600px) {
  .legal-page__shell {
    width: min(100% - 1rem, 860px);
    padding-top: 1rem;
  }

  .legal-footer {
    padding-inline: .5rem;
  }

  .legal-modal .modal-panel {
    width: calc(100vw - 16px);
    margin: 8px auto;
    max-height: calc(100vh - 16px);
  }
}
