html body.page-template-page-legal {
  --legal-shell: 1360px;
  --legal-sidebar: 292px;
  --legal-gap: clamp(36px, 4vw, 64px);
  --legal-ink: #101827;
  --legal-copy: #4f6075;
  --legal-muted: #718096;
  --legal-line: #dfe7f0;
  --legal-panel: #f6f9fc;
  background: #fff;
  color: var(--legal-ink);
}

body.page-template-page-legal::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: block;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--c-brand);
}

body.page-template-page-legal .legal-page {
  background: #fff;
}

body.page-template-page-legal .site-breadcrumbs {
  margin-top: 28px;
}

body.page-template-page-legal .site-breadcrumbs__inner.shell,
body.page-template-page-legal .legal-shell {
  width: min(calc(100% - 48px), var(--legal-shell));
  max-width: var(--legal-shell);
}

body.page-template-page-legal .legal-shell {
  margin: clamp(48px, 5vw, 72px) auto clamp(80px, 8vw, 118px);
}

body.page-template-page-legal .legal-layout {
  display: grid;
  grid-template-columns: var(--legal-sidebar) minmax(0, 980px);
  gap: var(--legal-gap);
  align-items: start;
}

body.page-template-page-legal .legal-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid var(--legal-line);
  border-radius: 8px;
}

body.page-template-page-legal .legal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--c-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-template-page-legal .legal-kicker span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--c-brand);
  border-radius: 999px;
}

body.page-template-page-legal .legal-toc {
  display: grid;
  gap: 8px;
}

body.page-template-page-legal .legal-toc a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px 10px 20px;
  color: #627289;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 6px;
  overflow-wrap: anywhere;
  transition: color .18s ease, background-color .18s ease;
}

body.page-template-page-legal .legal-toc a:hover,
body.page-template-page-legal .legal-toc a:focus-visible,
body.page-template-page-legal .legal-toc a.is-active {
  color: var(--c-brand);
  background: #fff1f3;
}

body.page-template-page-legal .legal-toc a:focus-visible,
body.page-template-page-legal .legal-content a:focus-visible,
body.page-template-page-legal .legal-button:focus-visible,
body.page-template-page-legal .legal-cookie-switch input:focus-visible,
body.page-template-page-legal .legal-mobile-toc summary:focus-visible {
  outline: 3px solid rgba(250, 24, 47, .2);
  outline-offset: 3px;
}

body.page-template-page-legal .legal-toc a.is-active::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 4px;
  content: "";
  background: var(--c-brand);
  border-radius: 0 999px 999px 0;
}

body.page-template-page-legal .legal-article {
  min-width: 0;
  max-width: 980px;
}

body.page-template-page-legal .legal-article__header {
  margin: 0 0 38px;
}

html body.page-template-page-legal main#main-content.legal-page .legal-article h1 {
  max-width: 880px;
  margin: 0;
  color: var(--legal-ink);
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

body.page-template-page-legal .legal-updated {
  margin: 16px 0 28px;
  color: var(--legal-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body.page-template-page-legal .legal-intro {
  padding: 26px 30px;
  color: #53657c;
  background: var(--legal-panel);
  border: 1px solid var(--legal-line);
  border-radius: 8px;
}

body.page-template-page-legal .legal-intro p {
  max-width: 820px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

body.page-template-page-legal .legal-mobile-toc {
  display: none;
  height: fit-content;
}

body.page-template-page-legal .legal-content {
  color: var(--legal-copy);
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

body.page-template-page-legal .legal-content > * {
  max-width: 900px;
}

body.page-template-page-legal .legal-content h2 {
  scroll-margin-top: 112px;
  margin: 0;
  padding-top: 34px;
  color: var(--legal-ink);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

body.page-template-page-legal .legal-content h2:not(:first-child) {
  margin-top: 28px;
  border-top: 1px solid var(--legal-line);
}

body.page-template-page-legal .legal-content h3 {
  margin: 28px 0 10px;
  color: var(--legal-ink);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

body.page-template-page-legal .legal-content p,
body.page-template-page-legal .legal-content ul,
body.page-template-page-legal .legal-content ol,
body.page-template-page-legal .legal-content table,
body.page-template-page-legal .legal-content blockquote {
  margin-top: 16px;
  margin-bottom: 0;
}

body.page-template-page-legal .legal-content ul,
body.page-template-page-legal .legal-content ol {
  padding-left: 1.35em;
}

body.page-template-page-legal .legal-content li + li {
  margin-top: 8px;
}

body.page-template-page-legal .legal-content a,
body.page-template-page-legal .legal-related a {
  color: var(--c-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-template-page-legal .legal-content table {
  display: block;
  width: 100%;
  max-width: 900px;
  overflow-x: auto;
  border-collapse: collapse;
}

body.page-template-page-legal .legal-content th,
body.page-template-page-legal .legal-content td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--legal-line);
}

body.page-template-page-legal .legal-content blockquote {
  padding: 18px 22px;
  color: #47586d;
  background: #f8fafc;
  border-left: 4px solid var(--c-brand);
}

body.page-template-page-legal .legal-cookie-preferences {
  max-width: 900px;
  margin-top: 44px;
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--legal-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 39, .08);
}

body.page-template-page-legal .legal-cookie-preferences__header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--legal-line);
}

body.page-template-page-legal .legal-cookie-preferences__header .legal-kicker {
  margin-bottom: 12px;
}

body.page-template-page-legal .legal-cookie-preferences h2 {
  margin: 0;
  color: var(--legal-ink);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

body.page-template-page-legal .legal-cookie-preferences__header p,
body.page-template-page-legal .legal-cookie-preferences__row p,
body.page-template-page-legal .legal-cookie-preferences__empty,
body.page-template-page-legal .legal-cookie-preferences__status {
  margin: 8px 0 0;
  color: var(--legal-copy);
  font-size: 15px;
  line-height: 1.6;
}

body.page-template-page-legal .legal-cookie-preferences__list {
  display: grid;
}

body.page-template-page-legal .legal-cookie-preferences__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--legal-line);
}

body.page-template-page-legal .legal-cookie-preferences__row[hidden] {
  display: none;
}

body.page-template-page-legal .legal-cookie-preferences__row h3 {
  margin: 0;
  color: var(--legal-ink);
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
}

body.page-template-page-legal .legal-cookie-switch {
  display: inline-grid;
  grid-template-columns: auto 54px;
  gap: 12px;
  align-items: center;
  color: #627289;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

body.page-template-page-legal .legal-cookie-switch input {
  position: relative;
  width: 54px;
  height: 30px;
  margin: 0;
  appearance: none;
  cursor: pointer;
  background: #cbd5e1;
  border: 1px solid #c3cedb;
  border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease;
}

body.page-template-page-legal .legal-cookie-switch input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 24, 39, .18);
  transition: transform .18s ease;
}

body.page-template-page-legal .legal-cookie-switch input:checked {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

body.page-template-page-legal .legal-cookie-switch input:checked::before {
  transform: translateX(24px);
}

body.page-template-page-legal .legal-cookie-switch input:disabled {
  cursor: not-allowed;
  opacity: .9;
}

body.page-template-page-legal .legal-cookie-switch--required {
  color: #16855b;
}

body.page-template-page-legal .legal-cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.page-template-page-legal .legal-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--c-brand);
  border: 1px solid var(--c-brand);
  border-radius: 6px;
  font: 800 14px/1.2 var(--font-family-base);
  cursor: pointer;
}

body.page-template-page-legal .legal-button--secondary {
  color: var(--legal-ink);
  background: #fff;
  border-color: #cfd8e3;
}

body.page-template-page-legal .legal-button--ghost {
  color: #53657c;
  background: #f8fafc;
  border-color: #dfe7f0;
}

body.page-template-page-legal .legal-button--text {
  color: var(--c-brand);
  background: transparent;
  border-color: transparent;
}

body.page-template-page-legal .legal-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

body.page-template-page-legal .legal-cookie-preferences__status {
  min-height: 24px;
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 700;
}

body.page-template-page-legal .legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 900px;
  margin-top: 34px;
  padding-top: 24px;
  color: var(--legal-muted);
  border-top: 1px solid var(--legal-line);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  body.page-template-page-legal .legal-layout {
    grid-template-columns: 1fr;
  }

  body.page-template-page-legal .legal-sidebar {
    display: none;
  }

  body.page-template-page-legal .legal-mobile-toc {
    display: block;
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--legal-line);
    border-radius: 8px;
  }

  body.page-template-page-legal .legal-mobile-toc summary {
    min-height: 48px;
    padding: 14px 18px;
    color: var(--c-brand);
    font-weight: 800;
    cursor: pointer;
  }

  body.page-template-page-legal .legal-mobile-toc nav {
    display: grid;
    gap: 2px;
    padding: 0 18px 18px;
  }

  body.page-template-page-legal .legal-mobile-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    color: #627289;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  body.page-template-page-legal .site-breadcrumbs__inner.shell,
  body.page-template-page-legal .legal-shell {
    width: min(calc(100% - 32px), var(--legal-shell));
  }

  body.page-template-page-legal .legal-shell {
    margin-top: 34px;
    margin-bottom: 64px;
  }

  html body.page-template-page-legal main#main-content.legal-page .legal-article h1 {
    font-size: 38px;
  }

  body.page-template-page-legal .legal-intro {
    padding: 20px;
  }

  body.page-template-page-legal .legal-intro p,
  body.page-template-page-legal .legal-content {
    font-size: 16px;
  }

  body.page-template-page-legal .legal-cookie-preferences__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-template-page-legal .legal-cookie-switch {
    grid-template-columns: minmax(0, 1fr) 54px;
    width: 100%;
  }

  body.page-template-page-legal .legal-cookie-preferences__actions {
    display: grid;
  }

  body.page-template-page-legal .legal-button {
    width: 100%;
  }
}

@media print {
  body.page-template-page-legal::before,
  body.page-template-page-legal .site-header,
  body.page-template-page-legal .site-footer,
  body.page-template-page-legal .legal-sidebar,
  body.page-template-page-legal .legal-mobile-toc,
  body.page-template-page-legal .legal-related,
  body.page-template-page-legal .legal-cookie-preferences,
  body.page-template-page-legal .nav-quote,
  body.page-template-page-legal .tongyi-consent,
  body.page-template-page-legal .tongyi-cookie-settings {
    display: none !important;
  }

  body.page-template-page-legal .legal-shell,
  body.page-template-page-legal .legal-content > * {
    width: 100%;
    max-width: none;
  }

  body.page-template-page-legal .legal-layout {
    display: block;
  }

  body.page-template-page-legal .legal-content {
    color: #000;
    font-size: 12pt;
  }
}
