:root{
  --brand: #1c2f45;
  --bg: #0f1f31;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.68);
  --shadow: 0 18px 55px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 22px;
}

.privacy{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,0.08), transparent 55%),
              radial-gradient(900px 500px at 85% 20%, rgba(255,255,255,0.06), transparent 60%),
              linear-gradient(180deg, var(--brand), var(--bg));
  color: var(--text);
  padding: clamp(18px, 2.5vw, 36px);
  font-family: SuisseIntl, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

.privacy__hero{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: calc(var(--radius2) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 34px);
  margin: 0 auto clamp(16px, 2.5vw, 28px);
  max-width: 980px;
  position: relative;
  overflow: hidden;
}
.privacy__hero:before{
  content:"";
  position:absolute;
  inset: -2px;
  background: radial-gradient(500px 220px at 15% 15%, rgba(255,255,255,0.12), transparent 60%),
              radial-gradient(420px 240px at 85% 25%, rgba(255,255,255,0.10), transparent 65%);
  pointer-events:none;
  opacity: 0.9;
}
.privacy__heroInner{ position: relative; z-index: 1; }

.privacy__title{
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.2px;
}
.privacy__subtitle{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  max-width: 70ch;
}
.privacy__meta{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.privacy__section{
  max-width: 980px;
  margin: 0 auto clamp(12px, 2vw, 18px);
}
.privacy__section > h2{
  margin: 18px 0 10px;
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: 0.2px;
}

.privacy__card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.03));
  border-radius: var(--radius2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  padding: clamp(14px, 2.2vw, 22px);
}
.privacy__p{ margin: 0 0 12px; }
.privacy__p:last-child{ margin-bottom: 0; }

.privacy__hint{
  color: var(--muted);
  background: rgba(0,0,0,0.18);
  border: 1px dashed rgba(255,255,255,0.18);
  padding: 12px 14px;
  border-radius: 14px;
}

.privacy__link{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.privacy__link:hover{ text-decoration-thickness: 2px; }

.privacy__inlineBtn,
.privacy__footerBtn{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.privacy__footer{
  max-width: 980px;
  margin: 22px auto 0;
  padding: 14px 2px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.privacy__footerText{ margin: 0; font-size: 13px; }

/* =========================
   CONSENT BANNER
   ========================= */

html.consent-open{ overflow: hidden; }

.consent{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.consent__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.consent__panel{
  position: relative;
  width: min(980px, calc(100vw - 36px));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28,47,69,0.94), rgba(15,31,49,0.96));
}

.consent__head{
  padding: 18px 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(620px 240px at 20% 0%, rgba(255,255,255,0.10), transparent 60%);
}
.consent__title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.consent__sub{
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  max-width: 85ch;
}

.consent__body{ padding: 14px 18px 16px; }

.consent__toggles{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.toggle{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.12));
}
.toggle--locked{
  opacity: 0.88;
}
.toggle__left{ display: grid; gap: 2px; }
.toggle__name{ font-weight: 650; }
.toggle__desc{ color: rgba(255,255,255,0.70); font-size: 13px; }

.toggle__right{
  display: grid;
  place-items: center;
  min-width: 64px;
}

.toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle__ui{
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.20);
  position: relative;
  transition: transform 180ms ease, background 180ms ease;
}
.toggle__ui::after{
  content:"";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  transition: left 180ms ease;
}

/* checked visuals */
#consent_stat:checked + .toggle__ui,
#consent_mkt:checked + .toggle__ui,
#consent_ext:checked + .toggle__ui,
#consent_news:checked + .toggle__ui{
  background: rgba(255,255,255,0.16);
}
#consent_stat:checked + .toggle__ui::after,
#consent_mkt:checked + .toggle__ui::after,
#consent_ext:checked + .toggle__ui::after,
#consent_news:checked + .toggle__ui::after{
  left: 28px;
}

/* locked necessary: force look */
.toggle--locked .toggle__ui{
  background: rgba(255,255,255,0.12);
}
.toggle--locked .toggle__ui::after{
  left: 28px;
}

.consent__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn{
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.18);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.24); }
.btn:active{ transform: translateY(0); }

.btn--ghost{
  background: transparent;
}
.btn--soft{
  background: rgba(255,255,255,0.08);
}
.btn--primary{
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
}

.consent__fine{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}
.consent__link{
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
}

/* Mobile */
@media (max-width: 520px){
  .consent{ place-items: end stretch; padding: 12px; }
  .consent__panel{ width: 100%; }
  .consent__actions{ justify-content: stretch; }
  .btn{ width: 100%; }
}