/* Shared footer, information pages, and consent controls. */
[hidden] { display: none !important; }
.site-footer .footer-inner { flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; width: 100%; padding-top: 1.3rem; margin-top: .4rem; border-top: 1px solid #ffffff24; font-size: .92rem; }
.footer-nav a, .footer-nav button { color: var(--cream); text-decoration: none; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--mint-soft); text-decoration: underline; }
.footer-nav button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.cookie-settings-trigger { display: none; }
.consent-ready .cookie-settings-trigger { display: inline-block; }
.contact-privacy { font-size: .85rem; color: var(--muted); }
.legal-main { padding: 5rem 0 6rem; }
.legal-layout { max-width: 940px; }
.legal-main .eyebrow { color: var(--teal-mid); }
.legal-main h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 20ch; }
.legal-main .lead { max-width: 65ch; color: var(--muted); }
.legal-content { max-width: 76ch; }
.legal-content section { margin: 2.5rem 0; }
.legal-content h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-content li + li { margin-top: .5rem; }
.legal-content dl { display: grid; gap: .2rem; }
.legal-content dt { font-weight: 700; margin-top: .7rem; }
.legal-content dd { margin-left: 0; }
.legal-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal-content th, .legal-content td { padding: .8rem; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.legal-content th { background: var(--cream-deep); }
.legal-content details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.legal-content summary { font-weight: 600; cursor: pointer; }
.legal-note, .legal-notice, .template-notice { border-left: 3px solid var(--mint); padding: 1rem 1.3rem; background: var(--cream-deep); border-radius: 0 10px 10px 0; }
.legal-content [data-cookie-settings] { cursor: pointer; }
.cookie-banner, .cookie-dialog { background: var(--paper); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 60px #0a2c2a29; }
.cookie-banner { position: fixed; z-index: 100; bottom: 1.25rem; left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 2.5rem)); padding: 1.5rem 1.8rem; border-radius: 18px; display: grid; grid-template-columns: 1fr; gap: 1rem; max-height: 85dvh; overflow: auto; }
.cookie-eyebrow { margin: 0 0 .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-mid); }
.cookie-banner h2 { font-size: 1.8rem; margin: 0 0 .65rem; }
.cookie-banner p:not(.cookie-eyebrow) { margin: .5rem 0 0; font-size: .96rem; line-height: 1.5; }
.cookie-banner .cookie-detail, .cookie-detail { font-size: .84rem !important; color: var(--muted); line-height: 1.5; }
.cookie-actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-button { font: inherit; font-size: .94rem; font-weight: 600; color: var(--teal); background: var(--cream); border: 1px solid var(--teal); border-radius: 7px; padding: .7rem 1.3rem; min-width: 140px; min-height: 46px; cursor: pointer; }
.cookie-button:hover { background: var(--cream-deep); }
.cookie-button:disabled { opacity: .55; cursor: wait; }
.cookie-dialog { padding: 1.8rem; width: min(680px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border-radius: 18px; overscroll-behavior: contain; }
.cookie-dialog::backdrop { background: #082a2878; backdrop-filter: blur(3px); }
.cookie-dialog h2 { font-size: 1.9rem; margin: 0; }
.cookie-dialog-heading { display: flex; align-items: start; gap: 1rem; justify-content: space-between; }
.cookie-close { flex: 0 0 40px; height: 40px; font: inherit; font-size: 1.8rem; line-height: 1; border: 1px solid var(--line); background: transparent; color: var(--teal); border-radius: 50%; cursor: pointer; }
.cookie-categories { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie-category strong { display: block; font-size: 1rem; }
.cookie-description { display: block; font-size: .89rem; line-height: 1.5; color: var(--muted); margin-top: .3rem; }
.cookie-category input { flex-shrink: 0; width: 2.5rem; height: 1.4rem; accent-color: var(--teal); cursor: pointer; }
.cookie-category input:disabled { cursor: default; }
.cookie-preference-actions { margin-top: 1.5rem; }
.cookie-preference-actions .cookie-button { flex: 1; min-width: 100px; }
/* plain text over the pinned footer: let clicks reach the links underneath */
.cookie-notice { pointer-events: none; position: fixed; z-index: 101; bottom: 1rem; right: 1rem; max-width: min(460px, calc(100vw - 2rem)); padding: 1rem 1.3rem; margin: 0; color: var(--paper); background: var(--teal); border: 1px solid var(--mint); border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow); }
:where(.cookie-button, .cookie-close, .cookie-category input, .footer-nav a, .footer-nav button, .legal-main a, .legal-main button):focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
@media (max-width: 600px) {
  .cookie-banner { bottom: .6rem; width: calc(100% - 1.2rem); padding: 1.15rem; border-radius: 12px; gap: .8rem; }
  .cookie-banner h2 { font-size: 1.5rem; }
  .cookie-actions { gap: .5rem; }
  .cookie-actions .cookie-button { min-width: 0; flex: 1; padding: .7rem .6rem; font-size: .88rem; }
  .cookie-dialog { padding: 1.25rem; }
  .cookie-dialog h2 { font-size: 1.6rem; }
  .footer-nav { flex-direction: column; align-items: start; gap: .8rem; }
  .legal-main { padding: 3rem 0 4rem; }
  .legal-content th, .legal-content td { padding: .4rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .cookie-dialog::backdrop { backdrop-filter: none; } }

.legal-updated { color: var(--muted); font-size: .85rem; margin: 1.5rem 0 2rem; }
.legal-notice p:first-child { margin-top: 0; }
.legal-notice p:last-child { margin-bottom: 0; }
.legal-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.legal-main .btn-outline { color: var(--teal); border-color: var(--teal); }
.cookie-category input[role="switch"] { appearance: none; position: relative; width: 46px; height: 26px; border: 1px solid #7b8b86; border-radius: 20px; background: #e6e9e4; }
.cookie-category input[role="switch"]::before { content: ""; display: block; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24333040; }
.cookie-category input[role="switch"]:checked { background: var(--teal); border-color: var(--teal); }
.cookie-category input[role="switch"]:checked::before { transform: translateX(20px); }
.cookie-preference-actions { position: sticky; bottom: -1.8rem; padding: 1rem 0 .5rem; background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .cookie-preference-actions { bottom: -1.25rem; } }
