/* ==========================================================================
   GDPR / cookie consent — banner, preference centre, form consent controls
   ========================================================================== */

.gdpr {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  padding: 20px;
  transform: translateY(120%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.gdpr.is-visible { transform: translateY(0); }

.gdpr[hidden] { display: none; }

.gdpr__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  border: 1px solid #e4e7ed;
}

.gdpr__body { flex: 1 1 auto; min-width: 0; }

.gdpr__title {
  margin: 0 0 8px;
  font-family: var(--t-headline-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1d26;
}

.gdpr__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4f5e;
}

.gdpr__text a,
.gdpr__link {
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}

.gdpr__link {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
}

.gdpr__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gdpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 40px;
  background: transparent;
  font-family: var(--t-headline-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gdpr-btn--allow {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.gdpr-btn--allow:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.gdpr-btn--deny {
  border-color: #c9ced8;
  color: #2c2c2c;
}

.gdpr-btn--deny:hover { border-color: #1a1d26; }

.gdpr-btn--ghost {
  padding: 0 12px;
  color: var(--brand);
  text-decoration: underline;
}

@media screen and (max-width: 960px) {
  .gdpr__inner { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  .gdpr__actions { flex-direction: column; align-items: stretch; }
  .gdpr-btn { width: 100%; }
}

@media screen and (max-width: 640px) {
  .gdpr { padding: 12px; }
  .gdpr__inner { border-radius: 14px; max-height: 80vh; overflow-y: auto; }
  .gdpr__title { font-size: 17px; }
  .gdpr__text { font-size: 13px; }
}

/* ------------------------------------------------------- preference centre --- */

.gdpr-prefs__intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4f5e;
}

.gdpr-group {
  padding: 18px 0;
  border-top: 1px solid #e4e7ed;
}

.gdpr-group:last-of-type { border-bottom: 1px solid #e4e7ed; }

.gdpr-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gdpr-group__name {
  margin: 0;
  font-family: var(--t-headline-font);
  font-size: 16px;
  font-weight: 700;
  color: #1a1d26;
}

.gdpr-group__descr {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a4f5e;
}

.gdpr-group__legal {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8b90a0;
}

/* Switch */
.switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: #c9ced8;
  transition: background-color .25s ease;
  pointer-events: none;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
}

.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:disabled + .switch__track { background: var(--brand); opacity: .5; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 3px; }

.gdpr-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.gdpr-prefs__note {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8b90a0;
}

/* ------------------------------------------------------- policy popup body --- */

.policy h3 {
  margin: 26px 0 10px;
  font-family: var(--t-headline-font);
  font-size: 17px;
  font-weight: 700;
  color: #1a1d26;
}

.policy h3:first-child { margin-top: 0; }

.policy p,
.policy li { font-size: 14.5px; line-height: 1.65; color: #2c2c2c; }

.policy ul { margin: 0 0 12px; padding-left: 20px; }

.policy li { margin-bottom: 6px; }

.policy li::marker { color: var(--brand); }

/* --------------------------------------------------- consent inside forms --- */

.consent { margin: 6px 0 0; }

.consent__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent__label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent__box {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid #000;
  border-radius: 3px;
  background: transparent;
}

.consent__label input:checked + .consent__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__label input:focus-visible + .consent__box { outline: 2px solid var(--brand); outline-offset: 2px; }

.consent__text { font-size: 13.5px; line-height: 1.55; color: #2c2c2c; }

.consent__text a { color: var(--brand); }
