.page__bd { max-width: none !important; margin: 0 !important; }
#workspace {
  width: auto !important; max-width: none !important; margin: 0 !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
}
.legal-page {
  box-sizing: border-box;
  width: 100%;
  min-height: 62vh;
  padding: 34px max(18px, calc((100% - 920px) / 2)) 64px;
  color: #1d2738;
  background: #f6f8fa;
}
.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
.legal-heading { margin: 0 0 22px; }
.legal-heading > p { margin: 0 0 4px; color: #1261d8; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.legal-heading h1 { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.legal-heading > span { display: block; margin-top: 7px; color: #657184; font-size: 15px; }
.legal-content {
  overflow: hidden;
  padding: 6px 24px 24px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
}
.legal-content > .weui-footer__text {
  margin: 0 -24px;
  padding: 13px 24px;
  border-bottom: 1px solid #e7ebf0;
  color: #657184;
  background: #f9fafb;
  font-size: 13px;
  text-align: left;
}
.legal-content > .weui-panel__hd {
  position: relative;
  margin: 0;
  padding: 18px 36px 14px 0;
  border-bottom: 1px solid #e7ebf0;
  color: #1d2738;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}
.legal-content > .weui-panel__hd::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 2px;
  width: 28px;
  height: 28px;
  color: #657184;
  font: 400 22px/28px sans-serif;
  text-align: center;
}
.legal-content > .weui-panel__hd[aria-expanded="true"]::after { content: "−"; }
.legal-content > .weui-panel__hd:hover { color: #1261d8; }
.legal-content > .weui-panel__hd:focus-visible { outline: 2px solid #1261d8; outline-offset: 3px; }
.legal-content > .weui-panel__bd {
  display: none;
  padding: 14px 0 8px;
  color: #4f5d70;
  font-size: 14px;
  line-height: 1.82;
}
.legal-content > .weui-panel__bd.active { display: block; }
.legal-content > .weui-panel__bd p { margin: 0 0 11px; }
.legal-content > .weui-panel__bd h4 { margin: 18px 0 7px; color: #263347; font-size: 15px; }
.legal-content a { color: #1261d8; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 620px) {
  .legal-page { padding: 24px 12px 44px; }
  .legal-heading { margin-bottom: 16px; }
  .legal-heading h1 { font-size: 25px; }
  .legal-heading > span { font-size: 14px; }
  .legal-content { padding: 4px 16px 18px; }
  .legal-content > .weui-footer__text { margin: 0 -16px; padding: 12px 16px; }
  .legal-content > .weui-panel__hd { padding-top: 16px; padding-bottom: 13px; font-size: 16px; }
  .legal-content > .weui-panel__hd::after { top: 13px; }
  .legal-content > .weui-panel__bd { font-size: 14px; line-height: 1.75; }
}

/* Legal-page support actions use the same three-channel component as the
   storefront. Refund keeps a secondary order shortcut below it. */
.legal-cta {
  display: block;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hp-border, #e4e9f1);
}
.legal-cta .legal-secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid var(--hp-border, #e4e9f1);
  background: var(--hp-white, #fff);
  color: var(--hp-navy, #0f172a);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.legal-cta .legal-secondary-action:hover { border-color: var(--hp-blue, #2563eb); color: var(--hp-blue-dark, #1d4ed8); }
