@media screen and (max-width: 960px) {
  html { scroll-padding-top: 170px; }
  .header-inner {
    width: calc(100% - 40px); height: auto; min-height: 88px;
    padding: 16px 0 12px; grid-template-columns: minmax(0,1fr) auto;
    gap: 12px 16px;
  }
  .brand { grid-column: 1; grid-row: 1; max-width: 100%; }
  .brand svg { max-width: 100%; }
  .back-home { grid-column: 2; grid-row: 1; max-width: 154px; min-height: 42px; white-space: normal; text-align: right; line-height: 1.5; }
  .header-nav {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-start;
    flex-wrap: wrap; gap: 0 20px; min-width: 0;
  }
  .header-nav a { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; white-space: normal; line-height: 1.5; }
  .legal-layout { grid-template-columns: minmax(0,1fr); gap: 32px; width: calc(100% - 40px); margin: 32px auto 64px; }
  .toc { position: static; top: auto; max-height: none; overflow: visible; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
  .toc-label { margin-bottom: 12px; }
  .toc nav { gap: 0; }
  .toc a { padding-top: 7px; padding-bottom: 7px; }
  .legal-document, .legal-section, .document-intro, .contact-page, .email-section > div, .contact-topic > div { min-width: 0; overflow-wrap: anywhere; }
  .document-header h1, .contact-heading h1 { font-size: clamp(30px,6vw,40px); line-height: 1.2; }
  .document-date { margin-bottom: 28px; }
  .legal-section { scroll-margin-top: 20px; margin-top: 32px; }
  .legal-section h2 { font-size: 21px; }
  .contact-page { width: calc(100% - 40px); margin: 32px auto 64px; }
  .contact-heading { margin-bottom: 28px; }
  .contact-heading p { font-size: 16px; }
  .email-section { flex-direction: column; align-items: stretch; gap: 22px; padding: 24px 0 28px; }
  .support-email { max-width: 100%; font-size: clamp(22px,5vw,26px); overflow-wrap: anywhere; }
  .email-actions { min-width: 0; max-width: 100%; align-items: flex-start; }
  .email-actions .button { min-height: 44px; height: auto; padding-top: 10px; padding-bottom: 10px; max-width: 100%; text-align: center; }
  .copy-email, #copy-status { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
  .contact-topic { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 28px 0; }
  .contact-topic h2 { max-width: none; }
  .contact-topic a { max-width: 100%; flex-wrap: wrap; }
  .topic-links { gap: 10px 24px; }
  .footer-inner { width: calc(100% - 40px); flex-wrap: wrap; gap: 20px; padding: 28px 0; }
  .footer-identity, .footer-nav { flex-wrap: wrap; gap: 10px 20px; max-width: 100%; }
  .footer-nav a { line-height: 1.6; }
}
@media screen and (max-width: 380px) {
  .header-inner { column-gap: 12px; }
  .brand, .brand svg { width: 140px; }
  .back-home { font-size: 12px; max-width: 144px; }
  .header-nav { column-gap: 14px; }
  .header-nav a { font-size: 13px; }
}
