/* =========================
   PÁGINA DE POLÍTICA DE COOKIES
   ========================= */

.cookie-policy-section {
  padding: 48px 0 88px;
  background: transparent;
}

.cookie-policy-card {
  position: relative;
  overflow: hidden;

  padding: 38px;
  border-radius: 34px;

  background:
    radial-gradient(circle at 94% 8%, rgba(255, 106, 0, 0.16), transparent 32%),
    radial-gradient(circle at 12% 92%, rgba(255, 106, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(6, 11, 20, 0.98));

  border: 1px solid rgba(255, 106, 0, 0.20);

  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 44px rgba(255, 106, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cookie-policy-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;

  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);

  background-size: 34px 34px;
  opacity: 0.18;
  pointer-events: none;
}

.cookie-policy-card > * {
  position: relative;
  z-index: 1;
}

.cookie-policy-card h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
}

.cookie-policy-card h2:first-of-type {
  margin-top: 20px;
}

.cookie-policy-card h3 {
  color: #ffffff;
  font-size: 21px;
  margin-bottom: 10px;
}

.cookie-policy-card p {
  max-width: 980px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.78;
}

.cookie-policy-card p + p {
  margin-top: 14px;
}

.cookie-policy-card a {
  color: #ff7a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cookie-policy-item {
  padding: 22px;
  border-radius: 24px;

  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 106, 0, 0.16);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cookie-policy-note {
  margin-top: 34px !important;
  padding: 18px 20px;
  border-radius: 20px;

  background: rgba(255, 106, 0, 0.10);
  border: 1px solid rgba(255, 106, 0, 0.22);

  color: rgba(255, 255, 255, 0.84) !important;
}


/* =========================
   BANNER GLOBAL DE COOKIES
   ========================= */

.cookie-consent {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;

  z-index: 999999;

  display: none;
  align-items: flex-end;
  justify-content: center;

  pointer-events: none;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent-card {
  width: min(100%, 1080px);

  padding: 24px;
  border-radius: 28px;

  background:
    radial-gradient(circle at 94% 8%, rgba(255, 106, 0, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(6, 11, 20, 0.98));

  border: 1px solid rgba(255, 106, 0, 0.26);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(255, 106, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  pointer-events: auto;
}

.cookie-consent-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cookie-consent-badge {
  display: inline-flex;
  align-items: center;

  margin-bottom: 12px;
  padding: 8px 14px;

  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.04)),
    rgba(12, 18, 30, 0.78);

  border: 1px solid rgba(255, 106, 0, 0.42);

  color: #ff7a1a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie-consent-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
}

.cookie-consent-card p {
  max-width: 760px;
  margin-top: 10px;

  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.68;
}

.cookie-consent-card a {
  color: #ff7a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;

  border: 1px solid transparent;

  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #ff6a00, #ffb066);
  color: #0b0f19;
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.24);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-btn-secondary:hover {
  border-color: rgba(255, 106, 0, 0.45);
}

.cookie-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.cookie-btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.30);
}


/* =========================
   MODAL DE PREFERÊNCIAS
   ========================= */

.cookie-modal {
  position: fixed;
  inset: 0;

  z-index: 1000000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 22px;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 50% 30%, rgba(255, 106, 0, 0.16), transparent 34%),
    rgba(3, 7, 18, 0.76);

  backdrop-filter: blur(8px);
}

.cookie-modal-card {
  position: relative;
  z-index: 1;

  width: min(100%, 640px);
  max-height: min(86vh, 720px);
  overflow: auto;

  padding: 30px;
  border-radius: 30px;

  background:
    radial-gradient(circle at 92% 8%, rgba(255, 106, 0, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.99), rgba(6, 11, 20, 0.99));

  border: 1px solid rgba(255, 106, 0, 0.28);

  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    0 0 54px rgba(255, 106, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.cookie-modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 106, 0, 0.18);
  border-color: rgba(255, 106, 0, 0.42);
}

.cookie-modal-card h2 {
  max-width: 500px;
  margin: 0;

  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
}

.cookie-modal-card > p {
  margin-top: 14px;

  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.cookie-preference-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.cookie-preference-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;

  padding: 18px;
  border-radius: 20px;

  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 106, 0, 0.16);
}

.cookie-preference-item h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
}

.cookie-preference-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-switch {
  position: relative;

  width: 54px;
  height: 30px;

  display: inline-block;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);

  cursor: pointer;

  transition: background 0.22s ease, border-color 0.22s ease;
}

.cookie-slider::before {
  content: "";
  position: absolute;

  width: 22px;
  height: 22px;

  left: 4px;
  top: 3px;

  border-radius: 999px;

  background: #ffffff;

  transition: transform 0.22s ease;
}

.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(135deg, #ff6a00, #ffb066);
  border-color: rgba(255, 106, 0, 0.42);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.70;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 24px;
}


/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 980px) {
  .cookie-consent-content {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
  }

  .cookie-policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cookie-policy-section {
    padding: 48px 0 60px;
  }

  .cookie-policy-card {
    padding: 24px;
    border-radius: 24px;
  }

  .cookie-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-consent-card {
    padding: 20px;
    border-radius: 22px;
  }

  .cookie-consent-actions,
  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-btn,
  .cookie-consent-actions .cookie-btn,
  .cookie-modal-actions .cookie-btn {
    width: 100%;
  }

  .cookie-modal {
    padding: 14px;
  }

  .cookie-modal-card {
    padding: 24px;
    border-radius: 24px;
  }

  .cookie-preference-item {
    grid-template-columns: 1fr;
  }
}