/* Dark palette for the legal template. Keep WordPress blocks and the consent UI independent. */
.mt-legal-root77 {
  --mt-legal-bg: #1d2229;
  --mt-legal-panel: #252c35;
  --mt-legal-text: #e7ecf2;
  --mt-legal-heading: #f7f8fa;
  --mt-legal-muted: #b8c7d5;
  --mt-legal-border: #404c58;
  --mt-legal-accent: var(--mt-yellow, #f8c537);
  background: var(--mt-legal-bg);
}

.mt-legal-root77 body.mt-legal77 {
  margin: 0;
  background: var(--mt-legal-bg);
  color: var(--mt-legal-text);
}

.mt-legal77 .mt-legal-shell77 {
  color-scheme: dark;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mt-legal-bg);
  color: var(--mt-legal-text);
  font: 1rem/1.7 system-ui, "Segoe UI", Arial, sans-serif;
}

.mt-legal77 .mt-legal-shell77 *,
.mt-legal77 .mt-legal-shell77 *::before,
.mt-legal77 .mt-legal-shell77 *::after {
  box-sizing: border-box;
}

.mt-legal-shell77 a:focus-visible,
.mt-legal-shell77 .mt-legal-content77 :focus-visible {
  outline: 2px solid var(--mt-legal-accent);
  outline-offset: 3px;
}

.mt-legal-shell77 .mt-legal-wrap77 {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.mt-legal-shell77 .mt-legal-header77 {
  border-bottom: 1px solid var(--mt-legal-border);
}

.mt-legal-shell77 .mt-legal-headinner77 {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mt-legal-shell77 .mt-legal-logo77 {
  font-size: clamp(27px, 4vw, 32px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.6px;
  text-decoration: none;
  color: var(--mt-legal-heading);
}

.mt-legal-shell77 .mt-legal-logo77 span {
  color: var(--mt-legal-accent);
}

.mt-legal-shell77 .mt-legal-back77 {
  color: var(--mt-legal-muted);
  font-size: .875rem;
  text-decoration: none;
  text-align: end;
}

.mt-legal-shell77 .mt-legal-back77:hover {
  color: var(--mt-legal-accent);
  text-decoration: underline;
}

.mt-legal-shell77 .mt-legal-main77 {
  flex: 1 0 auto;
  padding-block: 42px 70px;
}

.mt-legal-shell77 .mt-legal-intro77 {
  margin-bottom: 28px;
}

.mt-legal-shell77 .mt-legal-intro77 p {
  margin: 0 0 5px;
  color: var(--mt-legal-muted);
  font-size: .8125rem;
}

.mt-legal-shell77 :is(.mt-legal-intro77 h1, #mt-legal-title77) {
  margin: 0;
  color: var(--mt-legal-heading);
  font-family: inherit;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mt-legal-shell77 .mt-legal-intro77 h1 {
  font-size: clamp(25px, 3vw, 36px);
}

.mt-legal-shell77 .mt-legal-grid77 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mt-legal-shell77 :is(.mt-legal-nav77, .mt-legal-article77) {
  min-width: 0;
  border: 1px solid var(--mt-legal-border);
  background: var(--mt-legal-panel);
  border-radius: 16px;
  color: var(--mt-legal-text);
}

.mt-legal-shell77 .mt-legal-nav77 {
  display: grid;
  gap: 6px;
  padding: 16px;
  overflow-wrap: anywhere;
}

.mt-legal-shell77 .mt-legal-navtitle77 {
  color: var(--mt-legal-heading);
  font-size: .875rem;
  font-weight: 700;
  padding: 5px 12px 8px;
}

.mt-legal-shell77 .mt-legal-nav77 a {
  display: block;
  border-radius: 9px;
  padding: 12px;
  color: var(--mt-legal-muted);
  font-size: .875rem;
  text-decoration: none;
}

.mt-legal-shell77 .mt-legal-nav77 a:hover {
  background: #313b46;
  text-decoration: underline;
}

.mt-legal-shell77 .mt-legal-nav77 [aria-current="page"] {
  background: #403927;
  color: var(--mt-legal-accent);
  font-weight: 700;
}

.mt-legal-shell77 .mt-legal-article77 {
  padding: clamp(22px, 4vw, 44px);
}

.mt-legal-shell77 #mt-legal-title77 {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mt-legal-border);
  font-size: clamp(22px, 3vw, 28px);
}

.mt-legal-shell77 .mt-legal-content77 {
  max-width: 76ch;
  overflow-wrap: anywhere;
}

.mt-legal-shell77 .mt-legal-content77 :is(p, ul, ol, dl, blockquote, pre, figure, table) {
  margin: 0 0 1.1em;
}

.mt-legal-shell77 .mt-legal-content77 :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.3em 0 .5em;
  color: var(--mt-legal-heading);
  font-family: inherit;
  line-height: 1.35;
}

.mt-legal-shell77 .mt-legal-content77 :is(p, li, dd, dt, pre, td, th) {
  color: inherit;
}

.mt-legal-shell77 .mt-legal-content77 a {
  color: var(--mt-legal-accent);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.mt-legal-shell77 .mt-legal-content77 ul {
  list-style: disc outside;
}

.mt-legal-shell77 .mt-legal-content77 ol {
  list-style: decimal outside;
}

.mt-legal-shell77 .mt-legal-content77 :is(ul, ol) {
  padding-inline-start: 1.5em;
}

.mt-legal-shell77 .mt-legal-content77 pre {
  white-space: pre-wrap;
  font: inherit;
}

.mt-legal-shell77 .mt-legal-content77 :is(img, video) {
  max-width: 100%;
  height: auto;
}

.mt-legal-shell77 .mt-legal-content77 :is(.wp-block-table, table) {
  max-width: 100%;
  overflow-x: auto;
}

.mt-legal-shell77 .mt-legal-content77 table {
  border-collapse: collapse;
}

.mt-legal-shell77 .mt-legal-content77 table:not(.wp-block-table table) {
  display: block;
}

.mt-legal-shell77 .mt-legal-content77 :is(th, td) {
  padding: .55em .75em;
  border: 1px solid var(--mt-legal-border);
  background: var(--mt-legal-panel);
  text-align: start;
  vertical-align: top;
}

.mt-legal-shell77 .mt-legal-content77 th {
  background: var(--mt-legal-bg);
  color: var(--mt-legal-heading);
}

.mt-legal-shell77 .mt-legal-content77 .is-layout-flex > * {
  min-width: 0;
  max-width: 100%;
}

.mt-legal-shell77 .mt-legal-footer77 {
  border-top: 1px solid var(--mt-legal-border);
  padding-block: 24px;
  color: var(--mt-legal-muted);
  font-size: .8125rem;
}

@media (max-width: 720px) {
  .mt-legal-shell77 .mt-legal-wrap77 {
    width: calc(100% - 28px);
  }

  .mt-legal-shell77 .mt-legal-grid77 {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-legal-shell77 .mt-legal-main77 {
    padding-block: 25px 48px;
  }

  .mt-legal-shell77 .mt-legal-article77 {
    padding: 22px 18px;
  }

  /* Existing documents use horizontal spacer blocks for desktop alignment. */
  .mt-legal-shell77 .mt-legal-content77 .is-layout-flex {
    flex-wrap: wrap;
  }

  .mt-legal-shell77 .mt-legal-content77 .is-layout-flex > .wp-block-spacer[aria-hidden="true"] {
    display: none;
  }
}
