/* Public footer and consent controls: shared with every public page. */
.crest-footer, .cc-root, .cc-status { font-family: var(--crest-font-family); }
.crest-footer *, .cc-root *, .cc-status { box-sizing: border-box; }
.crest-footer {
    width: min(100% - 24px, 1440px);
    margin: 56px auto 16px;
    overflow: hidden;
    border: 1px solid #203354;
    border-radius: 24px;
    background: #101e35;
    color: #c1ccdd;
}
.crest-footer__invite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px;
    border-bottom: 1px solid #2a3e5c;
    background: radial-gradient(ellipse at 95% 0, #204677 0, transparent 65%), #142842;
}
.crest-footer .crest-footer__eyebrow {
    margin: 0 0 12px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.public-page .crest-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.crest-footer__invite p { max-width: 570px; margin: 0; font-size: 14px; line-height: 1.7; }
.crest-footer a, .crest-footer button { text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
.crest-footer .crest-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #17335a;
    font-size: 14px;
    font-weight: 700;
}
.crest-footer .crest-footer__cta:hover { background: #dbeafe; border-color: #dbeafe; color: #172554; }
.crest-footer__cta span { font-size: 22px; font-weight: 400; }
.crest-footer__main { display: grid; gap: 32px; padding: 32px 24px; }
.crest-footer .public-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: #fff; }
.crest-footer .public-brand > span { color: #fff; font-size: 20px; font-weight: 700; }
.crest-footer .public-brand__logo { width: auto; height: 44px; max-width: 160px; object-fit: contain; }
.crest-footer__brand > p { max-width: 290px; margin: 18px 0; font-size: 14px; line-height: 1.75; }
.crest-footer__signature { display: flex; align-items: center; gap: 9px; color: #93c5fd; font-size: 12px; }
.crest-footer__signature span { font-size: 18px; }
.public-page .crest-footer h3 { margin: 0 0 8px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; }
.crest-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.crest-footer__links a, .crest-footer__contact a { display: inline-flex; align-items: center; min-height: 40px; color: #c1ccdd; font-size: 13px; line-height: 1.6; }
.crest-footer__links a:hover, .crest-footer__contact a:hover, .crest-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.crest-footer__contact { min-width: 0; }
.crest-footer__contact p { margin: 12px 0; color: #a6b5cc; font-size: 13px; line-height: 1.7; }
.crest-footer__contact a { display: flex; width: fit-content; gap: 10px; }
.crest-footer__contact a span { overflow-wrap: anywhere; }
.crest-footer svg, .cc-root svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.crest-footer__contact svg { width: 17px; height: 17px; color: #93c5fd; }
.crest-footer__bottom { display: flex; flex-direction: column-reverse; gap: 20px; padding: 20px 24px; border-top: 1px solid #293a54; }
.crest-footer__bottom > p { margin: 0; color: #a6b5cc; font-size: 11px; line-height: 1.7; }
.crest-footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 8px; }
.crest-footer__legal a { min-height: 32px; align-content: center; color: #bbc8dc; font-size: 11px; line-height: 1.6; }
.crest-footer__legal button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid #425875; border-radius: 8px; background: #1b304d; color: #e1edff; font: 600 12px/1.4 var(--crest-font-family); cursor: pointer; }
.crest-footer__legal button:hover { background: #28496f; border-color: #7ea6dd; }
.crest-footer__legal svg { width: 16px; height: 16px; }
.crest-footer :is(a, button):focus-visible { outline: 3px solid #93c5fd; outline-offset: 5px; }

.cc-root[hidden], .cc-root [hidden], .cc-status[hidden] { display: none !important; }
.cc-root { position: relative; z-index: 2147483000; color: #1f2937; }
.cc-banner {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    gap: 20px;
    max-width: 1100px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: 24px;
    border: 1px solid #cbd9eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 64px #10233b30, 0 2px 8px #10233b0d;
}
.cc-banner__intro { display: flex; align-items: flex-start; gap: 16px; }
.cc-emblem { display: none; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border: 1px solid #dbeafe; border-radius: 16px; background: #eff6ff; color: #2563eb; }
.cc-emblem svg { width: 32px; height: 32px; }
.cc-root .cc-eyebrow { margin: 0 0 8px; color: #2563eb; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.public-page .cc-root h2 { margin: 0 0 10px; color: #172554; font-size: 23px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.cc-root .cc-description { margin: 0; color: #526078; font-size: 13px; line-height: 1.7; }
.cc-banner__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cc-root .cc-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid #bfcee3; border-radius: 8px; background: #fff; color: #1e40af; font: 600 13px/1.5 var(--crest-font-family); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.cc-root .cc-button--choice { background: #eff6ff; border-color: #c1d6f5; color: #1e40af; }
.cc-root .cc-button--choice:hover, .cc-root .cc-button--secondary:hover { background: #dbeafe; border-color: #93b8ec; }
.cc-root .cc-button--settings { color: #526078; border-color: transparent; }
.cc-root .cc-button--settings:hover { background: #f1f5f9; color: #1e40af; }
.cc-root .cc-button--primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.cc-root .cc-button--primary:hover { background: #1d4ed8; }
.cc-banner__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #e8eef6; color: #64748b; font-size: 11px; line-height: 1.6; }
.cc-root a { color: #1d4ed8; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cc-root a:hover { color: #172554; }
.cc-root :is(button, a, input):focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }
html.cc-modal-open { overflow: hidden; }
.cc-modal { width: min(620px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; margin: auto; overflow: hidden; border: 1px solid #dbe5f2; border-radius: 20px; background: #fff; color: #1f2937; box-shadow: 0 28px 100px #0f172a40; }
.cc-modal[open] { display: flex; flex-direction: column; }
.cc-modal::backdrop { background: #0b182d99; backdrop-filter: blur(4px); }
.cc-modal__header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 20px 20px; border-bottom: 1px solid #e5edf7; background: #f8fbff; }
.cc-root .cc-modal__header h2 { margin: 0; }
.cc-close { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #dbe5f2; border-radius: 50%; background: #fff; color: #526078; cursor: pointer; }
.cc-close:hover { background: #eaf2fe; color: #1d4ed8; }
.cc-modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.cc-modal__body > .cc-description { margin-bottom: 20px; }
.cc-category { margin-top: 12px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.cc-category--necessary { background: #f8fafc; }
.cc-category__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-page .cc-category h3 { margin: 0; color: #1e293b; font-size: 14px; font-weight: 600; line-height: 1.5; }
.cc-category p { margin: 8px 0 0; color: #526078; font-size: 12px; line-height: 1.7; }
.cc-active { display: inline-flex; flex-shrink: 0; gap: 4px; padding: 4px 8px; border-radius: 6px; background: #ecfdf5; color: #166534; font-size: 10px; font-weight: 600; }
.cc-switch { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 48px; height: 44px; cursor: pointer; }
.cc-switch input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch__track { width: 42px; height: 24px; border: 1px solid #94a3b8; border-radius: 20px; background: #94a3b8; transition: background .15s, border-color .15s; }
.cc-switch__track::after { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; content: ''; transition: transform .15s; }
.cc-switch input:checked + .cc-switch__track { border-color: #2563eb; background: #2563eb; }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid #3b82f6; outline-offset: 4px; }
.cc-root .cc-modal__note { margin: 20px 0 10px; color: #64748b; font-size: 11px; line-height: 1.7; }
.cc-policy { font-size: 12px; }
.cc-modal__actions { display: grid; flex-shrink: 0; gap: 8px; padding: 16px 20px; border-top: 1px solid #e5edf7; background: #f8fafc; }
.cc-error { padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 13px; line-height: 1.6; }
.cc-status { position: fixed; z-index: 2147483001; bottom: 24px; left: 50%; width: max-content; max-width: calc(100% - 32px); margin: 0; transform: translateX(-50%); padding: 14px 20px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 30px #10233b20; }
.cc-status span { margin-right: 6px; }
@media (min-width: 360px) {
    .crest-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crest-footer__brand, .crest-footer__contact { grid-column: 1 / -1; }
}
@media (min-width: 480px) {
    .cc-emblem { display: grid; }
    .cc-banner__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cc-button--settings { grid-column: 1 / -1; }
    .cc-modal__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
    .crest-footer { width: min(100% - 48px, 1440px); margin-top: 72px; margin-bottom: 24px; }
    .crest-footer__invite { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
    .crest-footer__cta { flex-shrink: 0; }
    .crest-footer__main { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 40px; }
    .crest-footer__brand { grid-column: auto; }
    .crest-footer__contact { grid-column: 1 / -1; }
    .crest-footer__bottom { padding: 24px 40px; }
    .cc-banner { right: 24px; bottom: 24px; left: 24px; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px 24px; padding: 24px 28px 18px; }
    .cc-banner__actions { align-content: center; }
    .cc-banner__meta { grid-column: 1 / -1; }
    .cc-modal__header, .cc-modal__body { padding: 24px 28px; }
    .cc-modal__actions { padding: 18px 28px; }
}
@media (min-width: 1100px) {
    .crest-footer__invite { padding: 40px 48px; }
    .crest-footer__main { grid-template-columns: 1.4fr .85fr .85fr 1.1fr; gap: 40px; padding: 44px 48px; }
    .crest-footer__contact { grid-column: auto; }
    .crest-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .crest-footer *, .cc-root * { transition: none !important; }
}
@media (forced-colors: active) {
    .cc-switch__track { border: 2px solid ButtonText; }
    .cc-switch input:checked + .cc-switch__track { background: Highlight; }
    .cc-switch__track::after { background: ButtonText; }
}
@media print { .cc-root, .cc-status { display: none !important; } }
