.legal-shell { max-width: 960px; margin: 1.5rem auto 3rem; color: var(--site-text, #e5e7eb); }
.legal-document { line-height: 1.75; overflow-wrap: anywhere; }
.legal-document h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.25; }
.legal-document h2, .legal-contact h2 { font-size: 1.22rem; line-height: 1.4; }
.legal-document a, .legal-contact a, .legal-draft a, .legal-site-footer a, .legal-agreement-fields a, .legal-consent-banner a { color: var(--site-link, #74c0fc); text-decoration: underline; text-underline-offset: .18em; }
.legal-document-nav, .legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: 1rem 0; }
.legal-document-nav a { color: inherit; padding: .5rem .2rem; }
.legal-document-nav [aria-current] { font-weight: 700; text-decoration-thickness: 2px; }
.legal-eyebrow { color: var(--site-muted, #9ca3af); margin-bottom: .35rem; }
.legal-document-header { margin: 2rem 0; }
.legal-section { margin: 2.3rem 0; scroll-margin-top: 6rem; }
.legal-section li { margin-bottom: .7rem; }
.legal-toc, .legal-contact { border: 1px solid var(--site-border, #475569); border-radius: .75rem; padding: 1.2rem; margin: 1.5rem 0; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; }
.legal-toc a { display: inline-block; padding: .35rem 0; }
.legal-draft { border: 1px solid #c98d24; border-radius: .6rem; padding: 1rem; margin: 1rem 0; }
.legal-button { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--site-border, #64748b); border-radius: .5rem; color: inherit !important; background: var(--site-surface, #17212d); font: inherit; text-decoration: none !important; cursor: pointer; }
.legal-button:hover { filter: brightness(1.1); }
.legal-button:focus-visible, .legal-site-footer a:focus-visible, .legal-check input:focus-visible { outline: 3px solid #52a8f4; outline-offset: 3px; }
.legal-form { max-width: 650px; margin: 1.5rem 0; }
.legal-field { display: grid; gap: .4rem; margin: 1rem 0; }
.legal-field input { width: 100%; min-height: 44px; border: 1px solid var(--site-border, #64748b); border-radius: .45rem; background: var(--site-surface, #17212d); color: inherit; padding: .6rem; }
.legal-check { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; margin: .8rem 0; line-height: 1.55; font-weight: 400; cursor: pointer; }
.legal-check input[type="checkbox"] { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin-top: .2rem; accent-color: #419064; }
.legal-agreement-fields { font-size: .92rem; margin: 1.2rem 0; }
.legal-account-accept { max-width: 540px; margin: clamp(10px, 4vh, 40px) auto; padding: clamp(16px, 4vw, 30px); border: 1px solid var(--site-border); border-radius: 16px; background: var(--site-surface); }
.legal-account-accept h1 { margin-bottom: 5px; font-size: clamp(1.35rem, 4.8vw, 1.8rem); }
.legal-account-accept header p { margin: 0; color: var(--site-muted); font-size: .92rem; }
.legal-account-accept .legal-form, .legal-account-accept .legal-agreement-fields { margin: 0; }
.legal-account-accept :is(.legal-check, .newsletter-choice) { margin: 0; padding: 9px 0; align-items: flex-start; line-height: 1.45; }
.legal-account-accept .legal-agreement-fields { margin-top: 12px; }
.legal-account-accept .newsletter-opt-in { margin: 5px 0 0; border-top: 1px solid var(--site-border); }
.legal-account-accept .newsletter-choice input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.legal-account-accept :is(.newsletter-optional, .newsletter-opt-in-description) { color: var(--site-muted); font-size: .82rem; }
.legal-account-accept .newsletter-optional { margin-inline-start: 6px; }
.legal-account-accept .newsletter-opt-in-description { display: block; }
.legal-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.legal-account-actions .legal-account-continue { flex: 1 1 auto; border-color: var(--site-accent); background: var(--site-accent); color: #fff !important; font-weight: 650; }
.legal-account-actions .legal-account-exit { background: transparent; border-color: transparent; }
.legal-account-contact { margin: 12px 0 0; font-size: .82rem; }
.legal-account-documents { margin-top: 12px; font-size: .82rem; }
.legal-account-documents .legal-document-nav { margin: 2px 0 0; gap: 0 10px; }
.auth-card .legal-check { color: var(--auth-text); font-size: .9rem; font-weight: 400; }
.auth-card form .legal-agreement-fields p { display: block; margin: .8rem 0; }
.legal-small { font-size: .9rem; line-height: 1.6; }
.legal-table-wrapper { overflow-x: auto; }
.legal-table-wrapper table { border-collapse: collapse; width: 100%; }
.legal-table-wrapper caption { caption-side: bottom; color: inherit; }
.legal-table-wrapper th, .legal-table-wrapper td { text-align: left; padding: .65rem; border: 1px solid var(--site-border, #475569); }
.legal-site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1rem; padding: 1rem; border-top: 1px solid var(--site-border, #475569); color: var(--site-text, #e5e7eb); font-size: .85rem; }
.legal-site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-consent-banner { position: fixed; z-index: 1090; bottom: max(.75rem, env(safe-area-inset-bottom)); right: .75rem; width: min(520px, calc(100% - 1.5rem)); max-height: 55dvh; overflow-y: auto; box-sizing: border-box; background: var(--site-surface, #17212d); color: var(--site-text, #e5e7eb); border: 1px solid var(--site-border, #64748b); border-radius: .65rem; padding: 14px 16px; box-shadow: 0 6px 24px #0004; font-size: 13px; }
.legal-consent-banner h2 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.legal-consent-banner p { line-height: 1.45; margin-bottom: 10px; }
.legal-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 4px 10px; }
.legal-consent-actions .legal-button { padding: 7px 12px; font-size: 13px; }
.legal-consent-actions .legal-consent-accept { border-color: #64b5f6; background: #64b5f6; color: #071b2b !important; font-weight: 600; }
.legal-consent-actions a { width: fit-content; min-height: 32px; display: inline-flex; align-items: center; font-size: 12px; }
.legal-consent-actions a:last-of-type { justify-self: end; }
.legal-consent-actions [role="alert"] { grid-column: 1 / -1; margin: 6px 0 0; }
html[data-theme="light"] .legal-button, html[data-theme="light"] .legal-field input, html[data-theme="light"] .legal-consent-banner { background: var(--site-surface, #fff); }
html[data-theme="light"] .legal-consent-actions .legal-consent-accept { background: #64b5f6; }
html[data-theme="light"] .legal-document a, html[data-theme="light"] .legal-contact a, html[data-theme="light"] .legal-site-footer a, html[data-theme="light"] .legal-agreement-fields a, html[data-theme="light"] .legal-consent-banner a { color: #145da0; }
@media (max-width: 480px) { .legal-consent-banner { padding: 12px; } .legal-shell { padding-inline: 1rem; } }
@media print { .site-navbar, .legal-site-footer, .legal-consent-banner, .legal-document-nav, .legal-actions { display: none !important; } .legal-shell { color: #000; max-width: none; } }
