/* Legal pages (privacy policy): readable long text, left-aligned. Dark mode follows site-dark.css. */
#privacy.legal { max-width: 820px; text-align: left; padding: 3rem 2.5rem; }
#privacy.legal h1 { font-size: 2rem; margin-bottom: .4rem; text-align: left; }
#privacy.legal h1::after { left: 0; transform: none; }
#privacy.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; text-align: left; }
#privacy.legal h2::after { display: none; }
#privacy.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
#privacy.legal h3::after { display: none; }
#privacy.legal h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
#privacy.legal :is(h1, h2, h3, h4) { max-width: 100%; overflow-wrap: anywhere; }
#privacy.legal p, #privacy.legal li { text-align: left; line-height: 1.65; font-size: 1rem; }
#privacy.legal ul, #privacy.legal ol { margin: .4rem 0 1rem 1.3rem; padding: 0; }
#privacy.legal li { margin: .2rem 0; color: #444; }
#privacy.legal a { color: #b36200; text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
#privacy.legal .legal-version { color: #6b6b75; margin-top: 0; }
#privacy.legal .legal-notice { background: #fff7e8; border-left: 3px solid #ff9f01; padding: .7rem 1rem; border-radius: 6px; }
#privacy.legal .legal-quick { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; margin: 1rem 0; }
#privacy.legal .legal-quick a { font-weight: 700; }
#privacy.legal .legal-toc { margin: 1.6rem 0 1rem; padding: 1rem 1.2rem; background: #f6f6f7; border-radius: 10px; }
#privacy.legal .legal-toc-title { font-weight: 700; margin: 0 0 .4rem; }
#privacy.legal .legal-toc ol { margin: 0 0 0 1.2rem; columns: 2; column-gap: 2rem; list-style: none; }
#privacy.legal .legal-toc li { break-inside: avoid; margin: 0 0 .35rem; }
@media (max-width: 640px) {
  #privacy.legal { padding: 2rem 1.2rem; }
  #privacy.legal .legal-toc ol { columns: 1; }
}
html[data-theme="dark"] #privacy.legal li { color: #c9c9d0; }
html[data-theme="dark"] #privacy.legal a { color: #ff9f01; }
html[data-theme="dark"] #privacy.legal .legal-version { color: #a1a1aa; }
html[data-theme="dark"] #privacy.legal .legal-notice { background: #2a2216; }
html[data-theme="dark"] #privacy.legal .legal-toc { background: #1a1a1e; }
/* "Back to contents" in a corner once the contents are out of sight (audit S02, 21/11/2026) */
.legal-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: #ff9f01; color: #0b0b0d !important; text-decoration: none !important;
  font-weight: 700; font-size: .9rem; padding: .55rem .9rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.legal-top:hover { background: #e58900; }
.legal-top:focus-visible { outline: 3px solid #203335; outline-offset: 2px; }
.legal-top[hidden] { display: none; }
