/* 05R.13: isolated cookie controls and printable legal content. */
#cookie-preferences{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px;width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;box-shadow:0 20px 70px #0006}
#cookie-preferences::backdrop{background:#0008}
#cookie-preferences .cookie-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
#cookie-preferences .cookie-heading h2{min-width:0;overflow-wrap:normal}
#cookie-preferences .cookie-heading button{flex-shrink:0}
#cookie-preferences #cookie-intro{font-size:16px;line-height:1.7}
#cookie-preferences fieldset{border:0;padding:0;margin:24px 0 0}
#cookie-preferences .cookie-category{display:flex;align-items:flex-start;gap:14px;border-top:1px solid var(--line);padding:18px 0;min-height:44px;cursor:pointer}
#cookie-preferences .cookie-category input{margin:5px 0 0;width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}
#cookie-preferences .cookie-category strong{display:block;font-size:16px;font-weight:600;color:var(--text)}
#cookie-preferences .cookie-category span span{display:block;font-size:14px;color:var(--muted);line-height:1.65;margin-top:5px}
#cookie-preferences .cookie-period{margin:10px 0 12px}
#cookie-preferences .cookie-feedback{font-size:14px;line-height:1.65;margin:12px 0}
#cookie-preferences .cookie-actions,.cookie-banner .cookie-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#cookie-preferences .cookie-actions .button,.cookie-banner .cookie-actions .button{flex:1 1 150px;min-height:44px}
#cookie-preferences .cookie-policy-link{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:underline;text-underline-offset:4px;margin-top:12px}
#cookie-preferences input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.cookie-banner[hidden]{display:none}
.cookie-banner{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(900px,calc(100% - 32px));z-index:80;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface-high);color:var(--text)}
@media(max-width:650px){#cookie-preferences{padding:20px}#cookie-preferences .cookie-heading{flex-direction:column;gap:12px}#cookie-preferences .cookie-heading button{align-self:flex-end}#cookie-preferences .cookie-actions,.cookie-banner .cookie-actions{flex-direction:column}#cookie-preferences .cookie-actions .button,.cookie-banner .cookie-actions .button{flex:auto;width:100%}}
@media print{#cookie-preferences,.cookie-banner,#cookie-announcement{display:none!important}body[data-route^="legal/"]{background:#fff;color:#111}body[data-route^="legal/"] .site-header,body[data-route^="legal/"] .site-footer,body[data-route^="legal/"] .legal-layout>aside,body[data-route^="legal/"] .skip-link{display:none}body[data-route^="legal/"] .legal-layout{display:block;width:auto;padding:0;margin:0}body[data-route^="legal/"] .legal-prose{max-width:none}body[data-route^="legal/"] .legal-prose :is(p,h1,h2,h3,a){color:#111}body[data-route^="legal/"] .legal-prose h1{font-size:24pt}body[data-route^="legal/"] .legal-prose h2{font-size:16pt}body[data-route^="legal/"] .legal-prose p{font-size:11pt}body[data-route^="legal/"] .legal-prose section{break-inside:avoid}}
