/* Shared portal/docs footer. Host adapters supply localized links and labels. */
.cw-footer { --ft-bg:#f6f6f6; --ft-ink:#292929; --ft-muted:#696969; --ft-line:#e3e3e3; box-sizing:border-box; flex-shrink:0; background:var(--ft-bg); color:var(--ft-muted); border-top:1px solid var(--ft-line); padding:0; margin:40px 0 0; font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
:root[data-theme=dark] .cw-footer { --ft-bg:#252525; --ft-ink:#ededed; --ft-muted:#b0b0b0; --ft-line:#3c3c3c; }
@media(prefers-color-scheme:dark) { :root:not([data-theme=light]):not([data-theme=dark]) .cw-footer { --ft-bg:#252525; --ft-ink:#ededed; --ft-muted:#b0b0b0; --ft-line:#3c3c3c; } }
.cw-footer *, .cw-footer *::before, .cw-footer *::after { box-sizing:border-box; }
.cw-footer-inner { max-width:1200px; padding:24px 32px 22px; margin:auto; }
.cw-footer-main { display:flex; align-items:center; gap:26px; min-height:48px; }
.cw-footer a { color:var(--ft-muted); text-decoration:none; text-transform:none; border:0; background:none; font-style:normal; }
.cw-footer a:hover { color:var(--ft-ink); background:none; text-decoration:underline; text-underline-offset:4px; }
.cw-footer a:focus-visible, .cw-footer summary:focus-visible, .cw-footer select:focus-visible { outline:2px solid var(--ft-ink); outline-offset:3px; border-radius:4px; }
.cw-footer-brand { display:inline-flex; align-items:center; justify-content:center; min-width:64px; min-height:44px; }
.cw-footer-mark { display:block; width:64px; height:30px; background:var(--ft-muted); mask:url('/images/logo.svg') center/contain no-repeat; -webkit-mask:url('/images/logo.svg') center/contain no-repeat; }
.cw-footer-mark img { display:block; width:64px; height:30px; opacity:0; }
.cw-footer-brand:hover .cw-footer-mark, .cw-footer-brand:focus-visible .cw-footer-mark, .cw-footer-brand:active .cw-footer-mark { background:var(--ft-ink); }
@supports not ((mask-image:url('/images/logo.svg')) or (-webkit-mask-image:url('/images/logo.svg'))) { .cw-footer-mark { background:transparent; } .cw-footer-mark img { opacity:1; filter:brightness(.4); } }
.cw-footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:24px; }
.cw-footer-links a { display:inline-flex; align-items:center; min-height:44px; padding:0; font-size:14px; }
.cw-preferences { margin-left:auto; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.cw-language { position:relative; }
.cw-language summary, .cw-theme { display:flex; align-items:center; gap:8px; min-height:44px; width:auto; padding:0; margin:0; font-size:14px; font-weight:400; color:var(--ft-muted); }
.cw-language summary { cursor:pointer; list-style:none; }
.cw-language summary::-webkit-details-marker { display:none; }
.cw-language summary::after { content:""; width:6px; height:6px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); margin:-4px 2px 0 10px; }
.cw-footer svg { width:17px; height:17px; flex-shrink:0; }
.cw-language-list { position:absolute; bottom:calc(100% + 6px); left:0; z-index:50; min-width:130px; padding:6px; background:var(--ft-bg); border:1px solid var(--ft-line); border-radius:8px; box-shadow:0 8px 24px #0002; }
.cw-language-list a { display:flex; align-items:center; min-height:44px; padding:4px 10px; }
.cw-language-list a[aria-current=page] { font-weight:600; color:var(--ft-ink); }
.cw-theme { display:none; }
.theme-ready .cw-theme { display:flex; }
.cw-theme select { font:inherit; min-height:44px; max-width:100%; border:0; border-radius:5px; color:var(--ft-muted); background:transparent; padding:4px; cursor:pointer; }
.cw-theme select:hover, .cw-language summary:hover { color:var(--ft-ink); }
.cw-theme option { background:var(--ft-bg); color:var(--ft-ink); }
.cw-footer-legal { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 22px; border-top:1px solid var(--ft-line); margin-top:16px; padding-top:14px; font-size:12px; }
.cw-footer-legal p { margin:0; font-size:inherit; line-height:1.8; color:inherit; }
.cw-footer-legal a { display:inline-flex; align-items:center; min-height:30px; }
@media(max-width:700px) { .cw-footer-inner { padding:19px 24px 22px; } .cw-footer-main { display:grid; grid-template-columns:64px minmax(0,1fr); gap:9px 24px; } .cw-footer-links { gap:22px; } .cw-preferences { grid-column:1/-1; margin-left:0; gap:25px; } .cw-footer-legal { display:block; margin-top:13px; } .cw-footer-legal p+p { margin-top:2px; } }
@media(max-width:350px) { .cw-footer-inner { padding-inline:20px; } .cw-footer-main { column-gap:18px; } .cw-footer-links { gap:16px; } .cw-preferences { gap:16px; } }
@media print { .cw-footer { display:none; } }
