/* Cookie notice, preferences dialog, footer legal links, legal pages, register checkbox.
   Loaded after redesign.css; uses its colour tokens. */

/* ---------- banner ---------- */
.cc-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 400; width: min(560px, calc(100vw - 40px));
  display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px;
  background: rgba(13, 16, 32, .94); border: 1px solid var(--border-strong, rgba(255,255,255,.18));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 50px rgba(155,107,255,.14);
  opacity: 0; transform: translateY(20px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.cc-banner.is-in { opacity: 1; transform: none; }
.cc-banner strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cc-banner p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--text-dim, #9aa3bf); }
.cc-banner p b { color: var(--text, #eef1fb); font-weight: 700; }
.cc-banner a, .cc-modal a { color: var(--accent, #5cc8ff); text-decoration: underline; text-underline-offset: 2px; }
.cc-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.cc-btn { font: inherit; font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; }
.cc-btn:active { transform: scale(.97); }
.cc-btn:focus-visible, .cc-switch input:focus-visible + i { outline: 2px solid var(--accent, #5cc8ff); outline-offset: 2px; }
/* "accept" and "necessary only" carry the same weight on purpose */
.cc-btn--primary { color: #07080f; background: var(--grad, linear-gradient(135deg,#5cc8ff,#9b6bff)); }
.cc-btn--primary:hover { box-shadow: 0 8px 24px rgba(92,200,255,.35); }
.cc-btn--ghost { color: var(--text, #eef1fb); background: rgba(255,255,255,.07); border-color: var(--border-strong, rgba(255,255,255,.18)); }
.cc-btn--ghost:hover { background: rgba(255,255,255,.12); }
.cc-btn--link { color: var(--text-dim, #9aa3bf); background: none; padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.cc-btn--link:hover { color: var(--text, #eef1fb); }

/* ---------- preferences dialog ---------- */
body.cc-open { overflow: hidden; }
.cc-modal { position: fixed; inset: 0; z-index: 410; display: grid; place-items: center; padding: 16px; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(5,6,13,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cc-modal__box { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border-radius: 22px;
  background: rgba(13,16,32,.97); border: 1px solid var(--border-strong, rgba(255,255,255,.18)); box-shadow: 0 34px 100px rgba(0,0,0,.65);
  animation: cc-pop .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cc-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.cc-modal h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 6px; }
.cc-modal__lead { color: var(--text-dim, #9aa3bf); font-size: .9rem; margin: 0 0 16px; }
.cc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border, rgba(255,255,255,.09)); }
.cc-row p { margin: 4px 0 0; font-size: .84rem; line-height: 1.5; color: var(--text-dim, #9aa3bf); }
.cc-row code { font-size: .8rem; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.cc-switch { position: relative; flex: none; width: 46px; height: 26px; display: inline-block; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.18); transition: background .2s; pointer-events: none; }
.cc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + i, .cc-switch.is-on i { background: var(--accent, #5cc8ff); }
.cc-switch input:checked + i::after, .cc-switch.is-on i::after { transform: translateX(20px); }
.cc-switch.is-locked { cursor: not-allowed; opacity: .6; }
.cc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border, rgba(255,255,255,.09)); }
.cc-modal__foot { margin: 14px 0 0; font-size: .8rem; color: var(--text-dim, #9aa3bf); }

/* ---------- footer legal row ---------- */
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 auto 14px; padding-top: 4px; font-size: .86rem; }
.footer__legal a, .footer__legal-btn { color: var(--text-dim, #9aa3bf); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color .2s; }
.footer__legal a:hover, .footer__legal-btn:hover { color: var(--text, #eef1fb); }

/* ---------- legal pages ---------- */
.legal h2 { scroll-margin-top: 90px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { margin: 8px 0 12px 1.2rem; display: grid; gap: 4px; }
.legal__meta { color: var(--text-dim, #9aa3bf); font-size: .85rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: .88rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border, rgba(255,255,255,.09)); }
.legal th { color: var(--text-dim, #9aa3bf); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.legal code { font-size: .84rem; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.legal .tbl-wrap { overflow-x: auto; }

/* ---------- register: terms checkbox ---------- */
.field--check { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; line-height: 1.5; color: var(--text-dim, #9aa3bf); cursor: pointer; }
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent, #5cc8ff); }
.field--check a { color: var(--accent, #5cc8ff); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-modal__box { transition: none; animation: none; } .cc-banner { opacity: 1; transform: none; } }
