/* Scoped additions preserve the existing site's layout and palette. */
[hidden] { display: none !important; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; margin: 1rem 0; }
.footer-legal a, .footer-legal button { color: white; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal button { border: 0; background: none; cursor: pointer; }
.form-privacy-notice { font-size: .9rem; margin: 0; }
.form-privacy-notice a, #privacy-controls a, .legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner, .cookie-dialog { background: #f5f1e5; color: #333; border: 1px solid #405f40; padding: 1.25rem; border-radius: 8px; box-shadow: 0 4px 24px #0003; }
.cookie-banner { position: fixed; z-index: 2000; bottom: 1rem; left: 1rem; right: 1rem; max-width: 850px; margin: auto; max-height: 75dvh; overflow-y: auto; }
.cookie-banner p { margin-bottom: .6rem; }
.cookie-dialog { margin: auto; width: min(640px, calc(100% - 2rem)); max-height: 90dvh; overflow-y: auto; }
.cookie-dialog::backdrop { background: #0008; }
.cookie-dialog h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.cookie-dialog input { accent-color: #405f40; width: 1.1rem; height: 1.1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.cookie-actions button { flex: 1 1 160px; padding: .75rem 1rem; border: 1px solid #405f40; border-radius: 4px; background: #405f40; color: white; font: inherit; cursor: pointer; }
.cookie-actions button:hover { background: #304930; }
#privacy-controls :focus-visible, .footer-legal :focus-visible, .legal-content :focus-visible { outline: 3px solid #a65500; outline-offset: 3px; }
.privacy-status:empty { display: none; }
.privacy-status:not(:empty) { position: fixed; bottom: 0; padding: 1rem; background: #f5f1e5; z-index: 2100; border: 1px solid #405f40; }
.legal-content { max-width: 960px; margin: 130px auto 2rem; padding: 1.5rem; overflow-wrap: anywhere; }
.legal-content section { padding: 1rem 0; }
.legal-content h1 { font-size: 2.2rem; }
.legal-content h2 { font-size: 1.5rem; margin: 1rem 0; text-align: left; }
.legal-content h2::after { display: none; }
.legal-table-wrap { overflow-x: auto; }
.legal-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.legal-content th, .legal-content td { text-align: left; padding: .7rem; border: 1px solid #405f4066; vertical-align: top; }
@media (max-width: 480px) { .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; } .cookie-actions { gap: .5rem; } .cookie-actions button { flex-basis: 100%; } }
