body.legal-page,
body.support-page,
body.static-page {
  --content-max: 1180px;
}

.legal-page-shell { padding-top: 28px; }
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.legal-hero { padding: 28px 30px; margin-bottom: 24px; }
.legal-hero .title { font-size: 34px; margin-bottom: 12px; }
.legal-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.legal-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }
.legal-toc { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.legal-toc h2 { font-size: 14px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 8px; padding-left: 18px; }
.legal-toc a { color: var(--text-soft); }
.legal-toc a:hover { color: var(--action); }
.legal-card { padding: 28px 30px; }
.legal-content { font-size: 15px; }
.legal-content section + section { margin-top: 26px; }
.legal-content h2 { font-size: 22px; margin-bottom: 10px; }
.legal-content h3 { font-size: 17px; margin-bottom: 6px; }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-content ul, .legal-content ol { padding-left: 20px; display: grid; gap: 8px; }
.legal-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.legal-feature-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ============================================================
   v17.69.56 LEGAL / INFORMATION PAGE MOBILE HEADER ROOT FIX

   The shared mobile rule allowed .header-inner to wrap while the sticky
   header kept a fixed 64px height. On legal/support pages the desktop nav
   links plus the injected Konto trigger therefore formed a second row below
   the blue header, overlaying the page and leaving a large false gap.

   Legal pages already expose a dedicated mobile section link. Keep the
   header to one row, hide the duplicate desktop links, and retain the Konto
   trigger as the only item inside .mini-actions.
   ============================================================ */
@media (max-width: 640px) {
  body.legal-page .app-header,
  body.legal-page .header,
  body.static-page .app-header,
  body.static-page .header {
    height: var(--header-h);
  }

  body.legal-page .app-header-inner,
  body.legal-page .header-inner,
  body.static-page .app-header-inner,
  body.static-page .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    padding-inline: 12px;
  }

  body.legal-page .logo,
  body.static-page .logo {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(19px, 5.4vw, 21px);
  }

  body.legal-page .mobile-market-link,
  body.static-page .mobile-market-link {
    margin-left: auto;
    min-height: 40px;
    padding: 8px 10px;
    flex: 0 0 auto;
  }

  body.legal-page .mini-actions,
  body.static-page .mini-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
  }

  body.legal-page .mini-actions .app-nav-link,
  body.static-page .mini-actions .app-nav-link {
    display: none;
  }

  body.legal-page .mini-actions .user-menu-trigger {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  body.legal-page .legal-page-shell {
    padding-top: 16px;
  }

  body.legal-page .legal-hero {
    padding: 20px 18px;
    margin-bottom: 16px;
  }
}

@media (max-width: 350px) {
  body.legal-page .app-header-inner,
  body.legal-page .header-inner,
  body.static-page .app-header-inner,
  body.static-page .header-inner {
    gap: 6px;
    padding-inline: 10px;
  }

  body.legal-page .mobile-market-link,
  body.legal-page .mini-actions .user-menu-trigger,
  body.static-page .mobile-market-link {
    padding-inline: 8px;
    font-size: 12px;
  }
}
