/* Intercultural 360 - legal pages on phones (impressum, privacy, terms, partner terms, cookie policy, kündigen;
   EN + DE). Layout only: not one word of the text changes. Behaviour: /assets/legal.js (contents toggle). */
.lg-toggle { display: none; }
@media (max-width: 767.98px) {
  html.lg-page body { overflow-x: hidden; }
  html.lg-page .legal { padding: 1.25rem 1rem 2.5rem; }
  html.lg-page .prose p, html.lg-page .prose li { font-size: 16px !important; line-height: 1.65 !important; }
  html.lg-page .prose h2 { font-size: 1.2rem !important; line-height: 1.35 !important; margin-top: 2rem !important; }
  html.lg-page .prose h3 { font-size: 1.05rem !important; line-height: 1.4 !important; }
  html.lg-page .prose td, html.lg-page .prose th { font-size: 14px; }
  html.lg-page .prose a, html.lg-page .legal-lang a { overflow-wrap: anywhere; }
  html.lg-page .legal-lang a { display: inline-flex; align-items: center; min-height: 44px; }
  /* long pages: the contents list collapses behind a toggle */
  html.lg-page .legal-toc.lg-collapsible { padding: 0; margin-bottom: 1.5rem; }
  html.lg-page .legal-toc.lg-collapsible > .legal-toc-title { display: none; }
  .lg-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; margin: 0; background: none; border: 0; cursor: pointer;
    font: 700 14px/1.2 'Inter', system-ui, sans-serif; color: #0f172a; text-align: left; -webkit-tap-highlight-color: transparent; }
  .lg-toggle::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .lg-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
  .lg-toggle:focus-visible { outline: 3px solid #5eead4; outline-offset: -3px; border-radius: 16px; }
  .lg-count { font-size: 12px; font-weight: 700; color: #0F6E56; background: #e6f4ef; border-radius: 999px; padding: 1px 8px; }
  html.lg-page .legal-toc.lg-collapsible > ol { display: none; padding: 0 16px 12px 2.6rem; columns: auto !important; }
  html.lg-page .legal-toc.lg-collapsible.lg-open > ol { display: block; }
  html.lg-page .legal-toc a { display: inline-flex; align-items: center; min-height: 40px; }
  /* tables scroll inside their box */
  html.lg-page .table-wrap, html.lg-page .lg-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* impressum (no .legal wrapper) */
  html.lg-page body > div.prose { padding-left: 1rem !important; padding-right: 1rem !important; padding-top: 1.5rem !important; }
  html.lg-page .cookie-settings-btn { padding: 8px 12px; }
}
@media print { .lg-toggle { display: none !important; } html.lg-page .legal-toc.lg-collapsible > ol { display: block !important; } }
