/* ============================================================
   1. FOOTER LINK
============================================================ */

.mmwb-legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px 22px;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.mmwb-legal-copyright {
  color: #B8CDE1;
}

.mmwb-legal-trigger {
  appearance: none;
  -webkit-appearance: none;

  padding: 4px 0;
  border: 0;

  background: transparent;

  color: #E4F1FF;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition: color 0.2s ease;
}

.mmwb-legal-trigger:hover {
  color: #69BAFF;
}


/* ============================================================
   2. DIALOG
============================================================ */

dialog.mmwb-legal-dialog {
  width: min(92vw, 780px);
  max-width: 780px;

  max-height: min(85vh, 820px);

  padding: 0;
  margin: auto;

  border: 1px solid rgba(136,196,255,0.25);
  border-radius: 16px;

  background: #061730;

  color: #FFFFFF;

  overflow: hidden;

  box-shadow: none;

  font-family: "Inter", sans-serif;

  text-align: left;
}

dialog.mmwb-legal-dialog::backdrop {
  background: rgba(0,9,24,0.78);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.mmwb-legal-shell {
  display: flex;
  flex-direction: column;

  max-height: min(85vh, 820px);

  min-height: 0;

  overflow: hidden;
}


/* ============================================================
   3. HEADER
============================================================ */

.mmwb-legal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  flex: 0 0 auto;

  gap: 22px;

  padding: 26px 30px 22px;

  border-bottom:
    1px solid rgba(137,193,255,0.16);

  background:
    radial-gradient(
      ellipse at 75% 0%,
      rgba(24,123,232,0.18),
      transparent 75%
    ),
    #061730;

  text-align: left;
}

.mmwb-legal-header-copy {
  flex: 1;
  min-width: 0;

  text-align: left;
}

.mmwb-legal-eyebrow {
  display: block;

  margin: 0 0 8px;

  color: #69B8FF;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-align: left;
}

.mmwb-legal-header h2 {
  margin: 0 0 8px;
  padding: 0;

  color: #FFFFFF;

  font-family: "Inter", sans-serif;
  font-size: 29px;
  font-weight: 750;

  line-height: 1.2;

  text-align: left;
}

.mmwb-legal-header p {
  margin: 0;
  padding: 0;

  color: #B7CBE0;

  font-size: 13px;
  font-weight: 400;

  line-height: 1.5;

  text-align: left;
}


/* ============================================================
   4. SINGLE CLOSE BUTTON
============================================================ */

.mmwb-legal-close {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 40px;

  width: 40px;
  height: 40px;

  padding: 10px;

  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;

  background: rgba(255,255,255,0.055);

  color: #FFFFFF;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.mmwb-legal-close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.mmwb-legal-close:hover {
  background: rgba(44,140,232,0.22);
  border-color: rgba(115,185,255,0.35);
}


/* ============================================================
   5. SCROLLABLE LEGAL DOCUMENT
============================================================ */

.mmwb-legal-content {
  flex: 1 1 auto;

  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;

  padding: 26px 36px 36px;

  color: #C7D8E9;

  text-align: left;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(100,165,225,0.45)
    transparent;
}


/* Force left alignment against Blocs global typography */

.mmwb-legal-content,
.mmwb-legal-content section,
.mmwb-legal-content h3,
.mmwb-legal-content p {
  text-align: left;
}


/* Last updated */

.mmwb-legal-content .mmwb-legal-updated {
  margin: 0 0 30px;

  color: #87BDEB;

  font-size: 12px;
  font-weight: 500;

  line-height: 1.5;

  text-align: left;
}


/* ============================================================
   6. DOCUMENT SECTIONS
============================================================ */

.mmwb-legal-content section {
  display: block;

  margin: 0 0 34px;
  padding: 0 0 0 18px;

  border-left: 2px solid rgba(44,140,232,0.34);
}

.mmwb-legal-content section:last-child {
  margin-bottom: 0;
}


/* Section headings */

.mmwb-legal-content h3 {
  margin: 0 0 14px;
  padding: 0;

  color: #FFFFFF;

  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;

  line-height: 1.35;

  letter-spacing: -0.01em;

  text-align: left;
}


/* Body paragraphs */

.mmwb-legal-content p {
  margin: 0 0 13px;
  padding: 0;

  color: #C7D8E9;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;

  line-height: 1.7;

  letter-spacing: 0;

  text-align: left;
}

.mmwb-legal-content section p:last-child {
  margin-bottom: 0;
}


/* Strong text */

.mmwb-legal-content strong {
  color: #FFFFFF;
  font-weight: 650;
}


/* Links */

.mmwb-legal-content a {
  color: #8FCBFF;

  text-decoration: underline;
  text-underline-offset: 3px;

  overflow-wrap: anywhere;
}

.mmwb-legal-content a:hover {
  color: #FFFFFF;
}


/* ============================================================
   7. SCROLLBAR
============================================================ */

.mmwb-legal-content::-webkit-scrollbar {
  width: 7px;
}

.mmwb-legal-content::-webkit-scrollbar-track {
  background: transparent;
}

.mmwb-legal-content::-webkit-scrollbar-thumb {
  background: rgba(100,165,225,0.35);
  border-radius: 10px;
}

.mmwb-legal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(100,165,225,0.58);
}


/* ============================================================
   8. KEYBOARD FOCUS
============================================================ */

.mmwb-legal-trigger:focus-visible,
.mmwb-legal-close:focus-visible,
.mmwb-legal-content a:focus-visible {
  outline: 2px solid #8FD8FF;
  outline-offset: 3px;
}


/* ============================================================
   9. TABLET
============================================================ */

@media (max-width: 767px) {

  dialog.mmwb-legal-dialog {
    width: 94vw;
    max-height: 88vh;
  }

  .mmwb-legal-shell {
    max-height: 88vh;
  }

  .mmwb-legal-header {
    padding: 22px 24px;
  }

  .mmwb-legal-content {
    padding: 24px;
  }

}


/* ============================================================
   10. MOBILE
============================================================ */

@media (max-width: 575px) {

  dialog.mmwb-legal-dialog {
    width: 94vw;
    max-height: 90vh;

    border-radius: 12px;
  }

  .mmwb-legal-shell {
    max-height: 90vh;
  }

  .mmwb-legal-header {
    gap: 12px;
    padding: 20px 18px;
  }

  .mmwb-legal-header h2 {
    font-size: 25px;
  }

  .mmwb-legal-header p {
    font-size: 12px;
  }

  .mmwb-legal-content {
    padding: 22px 20px 28px;
  }

  .mmwb-legal-content section {
    padding-left: 14px;
    margin-bottom: 28px;
  }

  .mmwb-legal-content h3 {
    font-size: 16px;
  }

  .mmwb-legal-content p {
    font-size: 14px;
    line-height: 1.65;
  }

}


/* ============================================================
   11. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

  .mmwb-legal-trigger,
  .mmwb-legal-close {
    transition: none;
  }

}

