/* Tables and emphasis for ai-disclosure.html and consent.html. Layout comes from ai-notice.css. */
.legal-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--frame); border-radius: 4px 16px 4px 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.legal-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.legal-table th, .legal-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); word-break: keep-all; overflow-wrap: anywhere; }
.legal-table thead th { border-top: 0; background: var(--surface-blue); font-size: 13px; white-space: nowrap; }
.legal-table tbody th { width: 27%; font-weight: 700; }
.legal-table td { color: var(--muted); }
/* The consent form has to make purpose, items, retention and refusal stand out from the body text. */
.legal-key { color: var(--accent); font-weight: 700; font-size: 1.08em; text-decoration: underline; text-underline-offset: 4px; }
.legal-quote { margin-top: 24px; padding: 20px 22px; border-left: 4px solid var(--accent); background: #f3f7fb; border-radius: 4px 14px 4px 14px; }
.legal-quote p { font-size: 15px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .legal-table th, :lang(ja) .legal-table td, :lang(ja) .legal-quote p { word-break: normal; line-break: strict; }
/* Phones: stack each row and repeat the column heading in front of the cell. */
@media (max-width: 600px) {
  .legal-table { font-size: 14px; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table tbody tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .legal-table tbody tr:first-child { border-top: 0; }
  .legal-table tbody th, .legal-table td { display: block; width: auto; padding: 0; border-top: 0; }
  .legal-table td { margin-top: 6px; }
  .legal-table td::before { content: attr(data-label) " · "; font-size: 12px; font-weight: 700; color: var(--ink, inherit); }
}
