html.legal-page,
body.legal-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.legal-page {
  color: var(--ink);
}

.legal-header {
  position: relative;
  justify-content: space-between;
  gap: 1.5rem;
}

.legal-back,
.privacy-footer {
  font-size: .875rem;
}

.legal-back,
.privacy-content a,
.privacy-footer a,
.privacy-footer button {
  color: var(--violet);
  text-underline-offset: .2em;
}

.legal-back {
  flex-shrink: 0;
}

.privacy-content,
.privacy-footer {
  width: min(48rem, calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.privacy-content {
  padding-block: clamp(3rem, 7vw, 6rem) 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.privacy-content h1 {
  margin: 0 0 2.5rem;
  color: var(--violet);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -.065em;
}

.privacy-content h2 {
  margin: 2.75rem 0 .85rem;
  color: var(--violet);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.privacy-content h3 {
  margin: 1.75rem 0 .65rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.privacy-content p {
  margin: 0 0 1.15rem;
}

.privacy-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}

.privacy-footer a,
.privacy-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.privacy-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-footer [hidden] {
  display: none;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

@media (max-width: 420px) {
  .legal-back { font-size: .8rem; }
  .privacy-content { font-size: .95rem; }
}
