html.privacy-policy-document,
html.privacy-policy-document body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.privacy-policy-body.newsletter-is-open {
  overflow: hidden;
}

html.privacy-policy-document:has(body.newsletter-is-open) {
  overflow-y: hidden;
}

.privacy-policy-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  padding: var(--page-margin);
  overflow: hidden;
  background-color: var(--theme-background);
  transition: background-color .18s ease;
}

.privacy-policy-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("./assets/images/texture_bg.png");
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  animation: texture-cycle 1s steps(1, end) infinite;
  opacity: 1;
  transition: opacity .18s ease;
}

.is-pink-mode .privacy-policy-page::before {
  opacity: 0;
  animation: none;
}

.privacy-policy-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.privacy-policy-main {
  --privacy-grid-width: calc(100vw - (var(--page-margin) * 2));
  --privacy-column: calc((var(--privacy-grid-width) - (var(--gutter) * 11)) / 12);

  display: flex;
  flex-direction: column;
  gap: 64px;
  width: calc((var(--privacy-column) * 8) + (var(--gutter) * 7));
  color: var(--theme-text);
  overflow-wrap: break-word;
}

.privacy-policy-main h1 {
  margin: 0;
  color: var(--theme-text);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.privacy-policy-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.privacy-policy-section h2,
.privacy-policy-section h3,
.privacy-policy-section p,
.privacy-policy-section ul {
  margin: 0;
}

.privacy-policy-section h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.privacy-policy-section h2.privacy-policy-updated {
  font-size: 32px;
}

.privacy-policy-section h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.privacy-policy-section ul {
  padding-left: 24px;
}

.privacy-policy-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.privacy-compact-break,
.privacy-tablet-break {
  display: none;
}

.privacy-policy-link {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.privacy-policy-newsletter {
  display: none;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 32px 0;
  border-top: 1px solid var(--theme-text);
  border-bottom: 1px solid var(--theme-text);
  color: var(--theme-text);
}

.privacy-policy-newsletter-copy {
  width: 100%;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  white-space: normal;
}

.privacy-policy-newsletter-copy p {
  margin: 0;
}

.privacy-policy-newsletter-copy p + p {
  margin-top: 28.8px;
}

@media (max-width: 1439px) {
  .privacy-policy-main {
    width: 100%;
  }

  .privacy-policy-main h1 {
    font-size: 48px;
  }
}

@media (max-width: 1023px) {
  .privacy-policy-newsletter {
    display: flex;
  }
}

@media (max-width: 743px) {
  .privacy-policy-main h1 {
    font-size: 32px;
  }

  .privacy-policy-section h2 {
    font-size: 32px;
  }

  .privacy-policy-section h2.privacy-policy-updated,
  .privacy-policy-section h3 {
    font-size: 24px;
  }
}

@media (max-width: 440px) {
  .privacy-policy-page .footer-menu {
    min-height: 50px;
  }
}

@media (min-width: 744px) and (max-width: 800px) {
  .privacy-compact-break {
    display: inline;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .privacy-tablet-break {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-policy-page::before {
    animation: none;
  }
}
