/* Privacy Policy page */
.bbi-privacy-policy-page {
  background: var(--color-background);
  padding-block: 30px clamp(56px, 8vw, 96px);
}

.bbi-privacy-policy {
  margin-inline: auto;
  max-width: 1372px;
  width: 100%;
}

.bbi-privacy-policy__header {
  margin-bottom: 60px;
}

.bbi-privacy-policy__title {
  font-family: var(--font-display);
  font-size: 100px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-align: left;
  text-transform: uppercase;
}

.bbi-privacy-policy__content {
  color: var(--color-text);
  display: grid;
  font-family: var(--font-zalando);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  gap: 0 clamp(28px, 3vw, 48px);
  grid-template-columns: minmax(280px, 40%) minmax(0, 60%);
  letter-spacing: 0;
  line-height: 1.6;
}

.bbi-privacy-policy__content > h2,
.bbi-privacy-policy__content > h4,
.bbi-privacy-policy__content.bbi-prose > h2,
.bbi-privacy-policy__content.bbi-prose > h4 {
  font-family: var(--font-display);
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  grid-column: 1 / -1;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 10px;
  text-align: left;
  text-transform: uppercase;
  word-spacing: normal;
}

/* 100px above every major heading (intro paragraphs → first h2, and between sections). */
.bbi-privacy-policy__content > :is(h2, h4) ~ :is(h2, h4),
.bbi-privacy-policy__content > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)),
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) ~ :is(h2, h4),
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)) {
  margin-top: 0;
  padding-top: 100px;
}

.bbi-privacy-policy__content > h3,
.bbi-privacy-policy__content.bbi-prose > h3 {
  display: contents;
  font-family: var(--font-display);
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  word-spacing: normal;
}

/* Full-width subsection divider — 30px above and below the rule. */
.bbi-privacy-policy__content > h3::before,
.bbi-privacy-policy__content.bbi-prose > h3::before {
  border-top: 0.5px solid #000000;
  box-sizing: border-box;
  content: "";
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 0;
  margin-top: 30px;
  padding-bottom: 30px;
  padding-top: 0;
}

/* First h3 after each major section (h2/h4 + intro copy) — no divider above it. */
.bbi-privacy-policy__content > :is(h2, h4) + h3::before,
.bbi-privacy-policy__content > :is(h2, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before,
.bbi-privacy-policy__content.bbi-prose > :is(h2, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + h3::before {
  border-top: none;
  content: none;
  display: none;
  margin: 0;
  padding: 0;
}

.bbi-privacy-policy__content > p,
.bbi-privacy-policy__content.bbi-prose > p {
  font-family: var(--font-zalando);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  grid-column: 1 / -1;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0 0 28px;
  text-align: justify;
  text-justify: inter-word;
}

/* 30px between section intro paragraph and first subsection heading. */
.bbi-privacy-policy__content > p:has(+ h3),
.bbi-privacy-policy__content.bbi-prose > p:has(+ h3),
.bbi-privacy-policy__content > p:has(+ p:empty + h3),
.bbi-privacy-policy__content.bbi-prose > p:has(+ p:empty + h3) {
  margin-bottom: 30px;
}

/* No extra gap before the next section — h2 padding-top supplies the 100px. */
.bbi-privacy-policy__content > p:has(+ :is(h2, h4)),
.bbi-privacy-policy__content.bbi-prose > p:has(+ :is(h2, h4)),
.bbi-privacy-policy__content > ul:has(+ :is(h2, h4)),
.bbi-privacy-policy__content > ol:has(+ :is(h2, h4)),
.bbi-privacy-policy__content.bbi-prose > ul:has(+ :is(h2, h4)),
.bbi-privacy-policy__content.bbi-prose > ol:has(+ :is(h2, h4)) {
  margin-bottom: 0;
}

/* Subsection lists sit in the right column beside h3 (Figma two-column rows). */
.bbi-privacy-policy__content > h3 + ul,
.bbi-privacy-policy__content > h3 + ol,
.bbi-privacy-policy__content.bbi-prose > h3 + ul,
.bbi-privacy-policy__content.bbi-prose > h3 + ol,
.bbi-privacy-policy__content > h3 + p:empty + ul,
.bbi-privacy-policy__content > h3 + p:empty + ol,
.bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ul,
.bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ol {
  align-self: start;
  font-family: var(--font-zalando);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  grid-column: 2;
  letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 0;
}

.bbi-privacy-policy__content > ul,
.bbi-privacy-policy__content > ol,
.bbi-privacy-policy__content.bbi-prose > ul,
.bbi-privacy-policy__content.bbi-prose > ol {
  font-family: var(--font-zalando);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  grid-column: 1 / -1;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Flush list to divider row — spacing lives on h3::before padding only. */
.bbi-privacy-policy__content > ul:has(+ h3),
.bbi-privacy-policy__content > ol:has(+ h3),
.bbi-privacy-policy__content.bbi-prose > ul:has(+ h3),
.bbi-privacy-policy__content.bbi-prose > ol:has(+ h3),
.bbi-privacy-policy__content > ul:has(+ p:empty + h3),
.bbi-privacy-policy__content > ol:has(+ p:empty + h3),
.bbi-privacy-policy__content.bbi-prose > ul:has(+ p:empty + h3),
.bbi-privacy-policy__content.bbi-prose > ol:has(+ p:empty + h3) {
  margin-bottom: 0;
}

.bbi-privacy-policy__content > ul:has(+ h3) > li:last-child,
.bbi-privacy-policy__content > ol:has(+ h3) > li:last-child,
.bbi-privacy-policy__content > ul:has(+ p:empty + h3) > li:last-child,
.bbi-privacy-policy__content > ol:has(+ p:empty + h3) > li:last-child,
.bbi-privacy-policy__content.bbi-prose > ul:has(+ h3) > li:last-child,
.bbi-privacy-policy__content.bbi-prose > ol:has(+ h3) > li:last-child,
.bbi-privacy-policy__content.bbi-prose > ul:has(+ p:empty + h3) > li:last-child,
.bbi-privacy-policy__content.bbi-prose > ol:has(+ p:empty + h3) > li:last-child {
  margin-bottom: 0;
}

.bbi-privacy-policy__content ul,
.bbi-privacy-policy__content ol {
  padding-left: 1.4em;
}

/* Single-item lists: no bullet marker. */
.bbi-privacy-policy__content ul:has(> li:only-child),
.bbi-privacy-policy__content ol:has(> li:only-child),
.bbi-privacy-policy__content.bbi-prose ul:has(> li:only-child),
.bbi-privacy-policy__content.bbi-prose ol:has(> li:only-child) {
  list-style: none;
  padding-left: 0;
}

.bbi-privacy-policy__content ul > li:only-child,
.bbi-privacy-policy__content ol > li:only-child,
.bbi-privacy-policy__content.bbi-prose ul > li:only-child,
.bbi-privacy-policy__content.bbi-prose ol > li:only-child {
  list-style: none;
  padding-left: 0;
}

.bbi-privacy-policy__content li,
.bbi-privacy-policy__content.bbi-prose li {
  font-family: var(--font-zalando);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 10px;
}

.bbi-privacy-policy__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .bbi-privacy-policy-page {
    padding-block: 24px 56px;
  }

  .bbi-privacy-policy__header {
    margin-bottom: 60px;
  }

  .bbi-privacy-policy__title {
    font-size: 64px;
  }

  .bbi-privacy-policy__content {
    font-size: 16px;
    gap: 0 24px;
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
  }

  .bbi-privacy-policy__content > h2,
  .bbi-privacy-policy__content > h4,
  .bbi-privacy-policy__content.bbi-prose > h2,
  .bbi-privacy-policy__content.bbi-prose > h4 {
    font-size: 34px;
    margin: 0 0 10px;
  }

  .bbi-privacy-policy__content > :is(h2, h4) ~ :is(h2, h4),
  .bbi-privacy-policy__content > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)),
  .bbi-privacy-policy__content.bbi-prose > :is(h2, h4) ~ :is(h2, h4),
  .bbi-privacy-policy__content.bbi-prose > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)) {
    margin-top: 0;
    padding-top: 100px;
  }

  .bbi-privacy-policy__content > h3,
  .bbi-privacy-policy__content.bbi-prose > h3 {
    font-size: 24px;
  }

  .bbi-privacy-policy__content > h3::before,
  .bbi-privacy-policy__content.bbi-prose > h3::before {
    margin-bottom: 0;
    margin-top: 30px;
    padding-bottom: 30px;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .bbi-privacy-policy__header {
    margin-bottom: 20px;
  }

  .bbi-privacy-policy__title {
    font-family: var(--font-display);
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
  }

  .bbi-privacy-policy__content {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .bbi-privacy-policy__content > h2,
  .bbi-privacy-policy__content > h4,
  .bbi-privacy-policy__content.bbi-prose > h2,
  .bbi-privacy-policy__content.bbi-prose > h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    grid-column: 1;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 10px;
    text-align: left;
    text-transform: uppercase;
    text-wrap: balance;
    word-spacing: normal;
  }

  /* 100px above every major heading (intro → first h2, and between sections). */
  .bbi-privacy-policy__content > :is(h2, h4) ~ :is(h2, h4),
  .bbi-privacy-policy__content > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)),
  .bbi-privacy-policy__content.bbi-prose > :is(h2, h4) ~ :is(h2, h4),
  .bbi-privacy-policy__content.bbi-prose > :is(h2, h4):not(:is(h2, h4) ~ :is(h2, h4)) {
    margin-top: 0;
    padding-top: 100px;
  }

  .bbi-privacy-policy__content > h3,
  .bbi-privacy-policy__content.bbi-prose > h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    text-wrap: balance;
    word-spacing: normal;
  }

  .bbi-privacy-policy__content > h3::before,
  .bbi-privacy-policy__content.bbi-prose > h3::before {
    margin-bottom: 0;
    margin-top: 20px;
    padding-bottom: 20px;
    padding-top: 0;
  }

  .bbi-privacy-policy__content > p,
  .bbi-privacy-policy__content.bbi-prose > p {
    font-family: var(--font-zalando);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    grid-column: 1;
    letter-spacing: 0;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .bbi-privacy-policy__content > p:has(+ h3),
  .bbi-privacy-policy__content.bbi-prose > p:has(+ h3),
  .bbi-privacy-policy__content > p:has(+ p:empty + h3),
  .bbi-privacy-policy__content.bbi-prose > p:has(+ p:empty + h3) {
    margin-bottom: 30px;
  }

  .bbi-privacy-policy__content > p:has(+ :is(h2, h4)),
  .bbi-privacy-policy__content.bbi-prose > p:has(+ :is(h2, h4)),
  .bbi-privacy-policy__content > ul:has(+ :is(h2, h4)),
  .bbi-privacy-policy__content > ol:has(+ :is(h2, h4)),
  .bbi-privacy-policy__content.bbi-prose > ul:has(+ :is(h2, h4)),
  .bbi-privacy-policy__content.bbi-prose > ol:has(+ :is(h2, h4)) {
    margin-bottom: 0;
  }

  .bbi-privacy-policy__content > ul,
  .bbi-privacy-policy__content > ol,
  .bbi-privacy-policy__content.bbi-prose > ul,
  .bbi-privacy-policy__content.bbi-prose > ol,
  .bbi-privacy-policy__content > h3 + ul,
  .bbi-privacy-policy__content > h3 + ol,
  .bbi-privacy-policy__content.bbi-prose > h3 + ul,
  .bbi-privacy-policy__content.bbi-prose > h3 + ol,
  .bbi-privacy-policy__content > h3 + p:empty + ul,
  .bbi-privacy-policy__content > h3 + p:empty + ol,
  .bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ul,
  .bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ol {
    font-family: var(--font-zalando);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    grid-column: 1;
    letter-spacing: 0;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .bbi-privacy-policy__content > ul:has(+ h3),
  .bbi-privacy-policy__content > ol:has(+ h3),
  .bbi-privacy-policy__content.bbi-prose > ul:has(+ h3),
  .bbi-privacy-policy__content.bbi-prose > ol:has(+ h3),
  .bbi-privacy-policy__content > ul:has(+ p:empty + h3),
  .bbi-privacy-policy__content > ol:has(+ p:empty + h3),
  .bbi-privacy-policy__content.bbi-prose > ul:has(+ p:empty + h3),
  .bbi-privacy-policy__content.bbi-prose > ol:has(+ p:empty + h3),
  .bbi-privacy-policy__content > h3 + ul,
  .bbi-privacy-policy__content > h3 + ol,
  .bbi-privacy-policy__content.bbi-prose > h3 + ul,
  .bbi-privacy-policy__content.bbi-prose > h3 + ol,
  .bbi-privacy-policy__content > h3 + p:empty + ul,
  .bbi-privacy-policy__content > h3 + p:empty + ol,
  .bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ul,
  .bbi-privacy-policy__content.bbi-prose > h3 + p:empty + ol {
    margin-bottom: 0;
  }

  .bbi-privacy-policy__content > ul:has(+ h3) > li:last-child,
  .bbi-privacy-policy__content > ol:has(+ h3) > li:last-child,
  .bbi-privacy-policy__content > ul:has(+ p:empty + h3) > li:last-child,
  .bbi-privacy-policy__content > ol:has(+ p:empty + h3) > li:last-child,
  .bbi-privacy-policy__content.bbi-prose > ul:has(+ h3) > li:last-child,
  .bbi-privacy-policy__content.bbi-prose > ol:has(+ h3) > li:last-child,
  .bbi-privacy-policy__content.bbi-prose > ul:has(+ p:empty + h3) > li:last-child,
  .bbi-privacy-policy__content.bbi-prose > ol:has(+ p:empty + h3) > li:last-child {
    margin-bottom: 0;
  }

  .bbi-privacy-policy__content li,
  .bbi-privacy-policy__content.bbi-prose li {
    font-family: var(--font-zalando);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
  }
}
