:root {
  --bw-legal-ink: #122b28;
  --bw-legal-muted: #52635f;
  --bw-legal-accent: #325c54;
  --bw-legal-paper: #f8f8f4;
  --bw-legal-rule: rgba(18, 43, 40, 0.16);
}

html.bw-legal-is-open,
html.bw-legal-is-open body {
  overflow: hidden;
}

.bw-legal-overlay[hidden] {
  display: none !important;
}

.bw-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: var(--bw-legal-ink);
  isolation: isolate;
}

.bw-legal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(76, 124, 115, 0.58), transparent 34%),
    radial-gradient(ellipse at 78% 30%, rgba(99, 139, 131, 0.42), transparent 36%),
    radial-gradient(ellipse at 50% 86%, rgba(65, 103, 96, 0.5), transparent 42%),
    #061b19;
}

.bw-legal-overlay__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 14, 13, 0.2), rgba(1, 14, 13, 0.52));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.bw-legal-overlay__scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(92px, 9vh, 132px) 24px clamp(72px, 10vh, 128px);
}

.bw-legal-overlay__papers {
  width: min(900px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  gap: clamp(46px, 7vh, 88px);
}

.bw-legal-overlay__close {
  position: fixed;
  z-index: 4;
  top: clamp(18px, 3vw, 38px);
  right: clamp(18px, 3vw, 42px);
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(248, 248, 244, 0.54);
  border-radius: 50%;
  color: #f8f8f4;
  background: rgba(4, 28, 25, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.bw-legal-overlay__close::before,
.bw-legal-overlay__close::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  top: 50%;
  left: 50%;
  background: currentColor;
}

.bw-legal-overlay__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.bw-legal-overlay__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.bw-legal-overlay__close:hover,
.bw-legal-overlay__close:focus-visible {
  transform: rotate(4deg) scale(1.05);
  background: rgba(50, 92, 84, 0.86);
  border-color: #f8f8f4;
}

.bw-legal-paper {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 1273px;
  padding: 54px 64px 60px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bw-legal-paper);
  box-shadow: 0 44px 105px rgba(0, 10, 9, 0.42), 0 8px 24px rgba(0, 10, 9, 0.22);
}

.bw-legal-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--bw-legal-rule);
}

.bw-legal-masthead__brand {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.bw-legal-masthead__label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
}

.bw-legal-masthead__label span { color: var(--bw-legal-accent); }
.bw-legal-masthead__label i { color: rgba(18, 43, 40, 0.35); font-style: normal; }

.bw-legal-paper__body {
  padding: 58px 24px 86px;
}

.bw-legal-paper__kicker,
.bw-legal-section__eyebrow {
  margin: 0 0 13px;
  color: var(--bw-legal-accent);
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bw-legal-paper h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 0.95;
  font-weight: 200;
  letter-spacing: -0.045em;
}

.bw-legal-paper__lede {
  max-width: 660px;
  margin: 0 0 44px;
  color: var(--bw-legal-muted);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.bw-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 46px;
}

.bw-legal-section {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--bw-legal-rule);
}

.bw-legal-section--wide { grid-column: 1 / -1; }

.bw-legal-section h2 {
  margin: 0 0 12px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bw-legal-section h3 {
  margin: 18px 0 7px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.bw-legal-section p,
.bw-legal-section li,
.bw-legal-address {
  margin: 0;
  color: #253b37;
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.62;
}

.bw-legal-section p + p { margin-top: 11px; }
.bw-legal-section ul { margin: 8px 0 0; padding-left: 18px; }
.bw-legal-section a { color: var(--bw-legal-accent); text-underline-offset: 3px; }

.bw-legal-address {
  white-space: pre-line;
  font-style: normal;
}

.bw-legal-placeholder {
  display: inline;
  padding: 1px 5px 2px;
  border-radius: 4px;
  color: #6a4015;
  background: #f4d9a6;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.bw-legal-launch-note {
  margin: 0 0 42px;
  padding: 18px 20px;
  border: 1px solid rgba(139, 85, 26, 0.26);
  border-radius: 12px;
  color: #5f3b18;
  background: #fff1d8;
  font-family: Manrope, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.bw-legal-launch-note strong { font-weight: 800; }

.bw-legal-paper__footer {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(18, 43, 40, 0.62);
  font-family: Manrope, Arial, sans-serif;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .bw-legal-overlay__scroll {
    padding: 78px 10px 34px;
  }

  .bw-legal-overlay__papers {
    width: 100%;
    gap: 24px;
  }

  .bw-legal-overlay__close {
    top: 13px;
    right: 13px;
    width: 48px;
    height: 48px;
  }

  .bw-legal-paper {
    min-height: 0;
    padding: 28px 22px 30px;
    border-radius: 18px;
  }

  .bw-legal-masthead {
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 17px;
  }

  .bw-legal-masthead__brand { font-size: 17px; }
  .bw-legal-masthead__label { max-width: 175px; font-size: 8px; gap: 6px; }

  .bw-legal-paper__body {
    padding: 38px 2px 62px;
  }

  .bw-legal-paper h1 {
    margin-bottom: 19px;
    font-size: clamp(43px, 15vw, 60px);
  }

  .bw-legal-paper__lede {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .bw-legal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bw-legal-section--wide { grid-column: auto; }
  .bw-legal-section h2 { font-size: 18px; }
  .bw-legal-section p,
  .bw-legal-section li,
  .bw-legal-address { font-size: 12.5px; }

  .bw-legal-paper__footer {
    position: static;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--bw-legal-rule);
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-legal-overlay__close { transition: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bw-legal-overlay__backdrop::after { background: rgba(1, 20, 18, 0.68); }
  .bw-legal-overlay__close { background: #173b35; }
}
