/* SOVRA Protocol — legal & cookie consent gate */
html.consent-locked body {
  overflow: hidden;
  height: 100vh;
}

#consent-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Inter", system-ui, sans-serif;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(12px);
}

.consent-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(24, 31, 52, 0.98), rgba(15, 21, 37, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.consent-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.consent-logo {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  flex-shrink: 0;
}

.consent-kicker {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8892a8;
  margin: 0 0 4px;
}

.consent-head h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: #f0f0f5;
  margin: 0;
  line-height: 1.25;
}

.consent-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  color: #8892a8;
  font-size: 14px;
  line-height: 1.65;
}

.consent-block {
  margin-bottom: 20px;
}

.consent-block:last-child {
  margin-bottom: 0;
}

.consent-block h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #00d4ff;
  margin: 0 0 8px;
}

.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.consent-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #00d4ff;
  text-decoration: none;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.consent-links a:hover {
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.4);
  text-decoration: none;
}

.consent-list {
  margin: 0;
  padding-left: 18px;
}

.consent-list li {
  margin-bottom: 8px;
}

.consent-list li:last-child {
  margin-bottom: 0;
}

.consent-risk {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 0, 102, 0.06);
  border: 1px solid rgba(255, 0, 102, 0.22);
}

.consent-risk h2 {
  color: #ff5a8a;
}

.consent-risk p {
  margin: 0;
  color: #c9cdd8;
}

.consent-foot {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.consent-foot-note {
  font-size: 12px;
  color: #4a5570;
  margin: 0 0 14px;
  line-height: 1.5;
}

.consent-accept {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #031018;
  background: linear-gradient(135deg, #00d4ff, #0080ff);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consent-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
}

.consent-accept:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  #consent-gate {
    padding: 12px;
  }
  .consent-head {
    padding: 18px 18px 14px;
  }
  .consent-body {
    padding: 16px 18px;
  }
  .consent-foot {
    padding: 14px 18px 18px;
  }
  .consent-links a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-accept {
    transition: none;
  }
}
