body.public-site:has(.legal-page) { background: #000; }

.legal-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 12px 64px;
  background: #000;
}

.legal-header__container,
.legal-footer__container {
  display: flex;
  width: 100%;
  max-width: 1024px;
  align-items: center;
  margin: 0 auto;
}

.legal-header__brand,
.legal-footer__brand { display: block; width: 132px; flex: none; }
.legal-header__brand svg,
.legal-footer__brand svg { display: block; width: 100%; height: auto; }

.legal-page { box-sizing: border-box; width: min(1024px, 100%); min-height: 100svh; margin: 0 auto; padding: 64px 0 0; }
.legal-page__content { padding: 72px 0 112px; }
.legal-page__content h1 { margin: 0; color: #fff; font-size: 40px; font-weight: 700; letter-spacing: -.045em; line-height: 56px; }
.legal-page__updated { margin: 28px 0 0; color: #888; font-size: 14px; line-height: 1.6; }
.legal-page__sections { max-width: 820px; margin-top: 56px; }
.legal-page__section { margin-top: 40px; }
.legal-page__section:first-child { margin-top: 0; }
.legal-page__section h2 { margin: 0 0 14px; color: #eee; font-size: 18px; font-weight: 600; line-height: 1.6; }
.legal-page__section p,
.legal-page__section li { color: #aaa; font-size: 15px; line-height: 1.9; }
.legal-page__section p { margin: 0 0 12px; }
.legal-page__section ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 1.4em; }
.legal-page__section a { color: #fff; text-underline-offset: 4px; }

.legal-footer { width: 100vw; margin-left: calc(50% - 50vw); padding: 32px 64px; background: #000; }
.legal-footer__container { min-height: 40px; gap: 32px; }
.legal-footer__copyright { margin-left: auto; color: #777; font-size: 13px; }
.legal-footer__other-link { color: #aaa; font-size: 14px; text-decoration: none; }
.legal-footer__other-link:hover { color: #fff; }

@media (max-width: 820px) {
  .legal-header { padding: 12px 24px; }
  .legal-header__brand,
  .legal-footer__brand { width: 120px; }
  .legal-page { width: 100%; padding: 64px 24px 0; }
  .legal-page__content { padding: 48px 0 80px; }
  .legal-page__content h1 { font-size: 30px; }
  .legal-page__updated { margin-top: 20px; }
  .legal-page__sections { margin-top: 40px; }
  .legal-page__section { margin-top: 32px; }
  .legal-page__section h2 { font-size: 16px; }
  .legal-page__section p,
  .legal-page__section li { font-size: 14px; }
  .legal-footer { padding: 28px 24px; }
  .legal-footer__container { flex-wrap: wrap; gap: 20px 24px; }
  .legal-footer__copyright { width: 100%; order: 1; margin-left: 0; }
  .legal-footer__other-link { margin-left: auto; }
}
