/* Avvisi di terze parti: sopra il guscio di legal.css, i testi delle licenze restano leggibili anche sul telefono. */
.notices-table th, .notices-table td { overflow-wrap: normal; }
.notices-table th:first-child { width: auto; }
.notices-table td:nth-child(2) { white-space: nowrap; }
.notices-table code, .license-text { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.notices-table code { font-size: 12.5px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.license-text {
  margin: 12px 0 0; padding: 20px; border-radius: 16px; background: var(--canvas); color: var(--ink-muted);
  font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* I separatori di trattini restano interi nel testo ma si tagliano al bordo invece di andare a capo. */
.license-text .rule { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: top; }
.notices h3 { scroll-margin-top: 24px; }
/* Sul telefono ogni riga della tabella diventa un blocco: nome e versione, licenza, file. */
@media (max-width: 600px) {
  .notices-table thead { display: none; }
  .notices-table table, .notices-table tbody, .notices-table tr { display: block; }
  .notices-table tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .notices-table td { display: block; padding: 2px 0; border: 0; }
  .notices-table td:nth-child(-n+2) { display: inline; padding: 0; color: var(--ink); font-weight: 600; }
  .notices-table td:nth-child(2) { margin-left: 6px; color: var(--ink-muted); font-weight: 400; }
  .notices-table td:nth-child(3) { margin-top: 4px; }
}
@media (max-width: 420px) {
  .license-text { padding: 14px; font-size: 12px; }
}
@media print {
  .license-text { padding: 0; background: transparent; color: inherit; }
}
