.legal-page { min-height: 100vh; background: radial-gradient(circle at 80% 0%, rgba(77, 134, 255, .12), transparent 32%), var(--bg); }
.legal-header { display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-header .brand-logo { width: 190px; height: 48px; }
.legal-back { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 13px; transition: color 180ms ease, transform 180ms ease; }
.legal-back:hover { color: var(--text); transform: translateX(-3px); }
.legal-shell { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-hero { max-width: 880px; padding-bottom: 60px; }
.legal-hero h1 { max-width: 760px; margin: 18px 0 22px; font-family: var(--display); font-size: clamp(46px, 7vw, 88px); line-height: .92; letter-spacing: -.085em; }
.legal-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-updated { margin-top: 24px !important; color: var(--blue-light) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.legal-content { max-width: 900px; padding: clamp(28px, 5vw, 62px); border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 21, 35, .76); box-shadow: 0 30px 90px rgba(0, 0, 0, .25); }
.legal-content h2 { margin: 0 0 18px; color: #eff7ff; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1; letter-spacing: -.06em; }
.legal-content h2:not(:first-child) { margin-top: 46px; }
.legal-content h3 { margin: 30px 0 10px; color: var(--blue-light); font-family: var(--display); font-size: 19px; letter-spacing: -.04em; }
.legal-content p, .legal-content li { color: #b7c6d8; font-size: 15px; line-height: 1.72; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul { margin: 0 0 22px; padding-left: 20px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(142, 233, 255, .38); text-underline-offset: 3px; }
.legal-note { margin-top: 32px !important; padding: 17px 18px; border-left: 2px solid var(--cyan); background: rgba(142, 233, 255, .05); color: #d7e8f7 !important; }
.legal-footer { display: flex; justify-content: space-between; gap: 24px; width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: var(--cyan); }

.cookie-root { position: relative; z-index: 100; }
.cookie-banner { position: fixed; z-index: 100; left: 22px; bottom: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; width: min(720px, calc(100% - 44px)); padding: 22px; border: 1px solid rgba(142, 233, 255, .32); border-radius: 26px; background: rgba(5, 14, 25, .97); box-shadow: 0 25px 80px rgba(0, 0, 0, .5), 0 0 35px rgba(77, 134, 255, .12); backdrop-filter: blur(18px); }
.cookie-banner[hidden], .cookie-settings[hidden] { display: none; }
.cookie-banner h2 { margin: 7px 0 8px; color: #eff7ff; font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -.05em; }
.cookie-banner p { max-width: 470px; margin: 0; color: #afc0d2; font-size: 12px; line-height: 1.55; }
.cookie-eyebrow { color: var(--cyan); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.cookie-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 14px; }
.cookie-links a { color: var(--blue-light); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; min-width: 176px; flex-direction: column; justify-content: center; gap: 8px; }
.cookie-actions button, .cookie-save { min-height: 38px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; color: #d8e7f5; cursor: pointer; font-size: 10px; transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.cookie-actions button:hover, .cookie-actions button:focus-visible, .cookie-save:hover, .cookie-save:focus-visible { border-color: var(--cyan); color: #06111c; background: var(--cyan); transform: translateY(-2px); }
.cookie-actions .cookie-accept { border-color: var(--cyan); background: var(--cyan); color: #06111c; }
.cookie-preferences { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid var(--line); }
.cookie-preferences[hidden] { display: none; }
.cookie-preferences h3 { margin: 0 0 12px; color: #eff7ff; font-family: var(--display); font-size: 18px; letter-spacing: -.04em; }
.cookie-preferences label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid rgba(166, 196, 230, .11); color: #cbdced; font-size: 12px; line-height: 1.45; }
.cookie-preferences input { margin-top: 2px; accent-color: var(--cyan); }
.cookie-preferences small { display: block; color: var(--subtle); font-size: 10px; }
.cookie-save { margin-top: 12px; }
.cookie-settings { position: fixed; z-index: 95; left: 20px; bottom: 20px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #071523; color: var(--cyan); cursor: pointer; font-size: 11px; box-shadow: 0 12px 35px rgba(0, 0, 0, .35); transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.cookie-settings:hover, .cookie-settings:focus-visible { border-color: var(--cyan); background: var(--cyan); color: #06111c; }

.whatsapp-float { position: fixed; z-index: 110; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 13px; border: 1px solid rgba(132, 255, 190, .58); border-radius: 999px; background: linear-gradient(135deg, #1bd46c, #0c9f54); color: #031b10; box-shadow: 0 16px 35px rgba(0, 0, 0, .34), 0 0 26px rgba(27, 212, 108, .25); font-size: 12px; font-weight: 700; letter-spacing: .01em; transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, filter 220ms ease; animation: whatsapp-float-in 700ms cubic-bezier(.2,.8,.2,1) both, whatsapp-pulse 3.6s ease-in-out 1s infinite; }
.whatsapp-float::before { position: absolute; inset: -6px; border: 1px solid rgba(27, 212, 108, .25); border-radius: inherit; content: ""; animation: whatsapp-ring 3.6s ease-out 1.3s infinite; pointer-events: none; }
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; flex: 0 0 auto; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { color: #02150c; filter: saturate(1.12) brightness(1.05); transform: translateY(-5px) scale(1.025); box-shadow: 0 21px 42px rgba(0, 0, 0, .38), 0 0 35px rgba(27, 212, 108, .36); }
.whatsapp-float:focus-visible { outline: 2px solid #eff7ff; outline-offset: 4px; }

@keyframes whatsapp-float-in { from { opacity: 0; transform: translateY(20px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes whatsapp-pulse { 0%, 100% { box-shadow: 0 16px 35px rgba(0, 0, 0, .34), 0 0 26px rgba(27, 212, 108, .25); } 50% { box-shadow: 0 18px 38px rgba(0, 0, 0, .36), 0 0 38px rgba(27, 212, 108, .38); } }
@keyframes whatsapp-ring { 0% { opacity: .6; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

@media (max-width: 700px) {
  .legal-header, .legal-shell, .legal-footer { width: min(100% - 36px, var(--max)); }
  .legal-header .brand-logo { width: 155px; height: 42px; }
  .legal-shell { padding: 62px 0 82px; }
  .legal-hero { padding-bottom: 38px; }
  .legal-content { padding: 25px 20px; }
  .legal-content p, .legal-content li { font-size: 14px; }
  .legal-footer { flex-direction: column; }
  .cookie-banner { left: 12px; right: 12px; bottom: 88px; grid-template-columns: 1fr; width: auto; padding: 18px; border-radius: 24px; }
  .cookie-actions { display: grid; min-width: 0; grid-template-columns: 1fr 1fr; }
  .cookie-actions .cookie-configure { grid-column: 1 / -1; }
  .cookie-settings { left: 12px; bottom: 78px; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 50px; padding-right: 15px; }
  .whatsapp-float span { font-size: 11px; }
}

@media (min-width: 701px) and (max-width: 960px) {
  .cookie-banner { bottom: 92px; }
  .cookie-settings { bottom: 82px; }
}

@media (max-width: 420px) {
  .whatsapp-float { width: 52px; height: 52px; min-height: 52px; justify-content: center; padding: 0; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float::before { animation: none; }
}
