.legal-page {
  padding-block: 48px 72px;
}
.legal-page .shared-section__inner {
  width: min(760px, calc(100% - 40px));
}
.legal-page h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -1px;
  line-height: 1.15;
}
.legal-page h2 {
  margin-block: 32px 12px;
  font-size: 24px;
  line-height: 1.3;
}
.legal-page .shared-text {
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.cookie-notice[hidden],
.cookie-notice-toggle[hidden] {
  display: none;
}
.cookie-notice {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 24px;
  width: auto;
  max-width: 860px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #d9ddcf;
  border-radius: 16px;
  background: #fffdf7;
  color: #293b34;
  box-shadow: 0 8px 32px #293b3426;
  text-align: left;
}
.cookie-notice > div {
  flex: 1;
  min-width: 0;
}
.cookie-notice h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #293b34;
}
.cookie-notice p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
}
.cookie-notice a {
  color: #5e45bb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-notice button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 24px;
  background: #5e45bb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.shared-site-footer .cookie-notice-toggle {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #293b34;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-notice :focus-visible,
.cookie-notice-toggle:focus-visible {
  outline: 3px solid #765ed8;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
