.privacy-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 20, 28, 0.62);
  backdrop-filter: blur(8px);
}

.privacy-gate-dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #d8e0e4;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(9, 20, 28, 0.32);
  color: #17231e;
  font-family: Arial, sans-serif;
}

.privacy-gate-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 18px;
  border-bottom: 1px solid #e4eaed;
}

.privacy-gate-kicker {
  margin: 0 0 8px;
  color: #0f6c56;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.privacy-gate h2 {
  margin: 0;
  color: #17231e;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.privacy-gate-version {
  flex: 0 0 auto;
  border: 1px solid #c9d6dc;
  border-radius: 999px;
  padding: 6px 10px;
  color: #49616c;
  font-size: 12px;
  background: #f6faf9;
}

.privacy-gate-copy {
  margin: 0;
  padding: 20px 30px 6px;
  color: #34454d;
  font-size: 15px;
  line-height: 1.55;
}

.privacy-gate-jurisdiction {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 14px;
  margin: 14px 30px 4px;
  padding: 14px;
  border: 1px solid #c7ddd5;
  border-radius: 8px;
  background: #f2faf6;
}

.privacy-gate-jurisdiction span,
.privacy-gate-jurisdiction small {
  display: block;
  color: #587078;
  font-size: 12px;
  line-height: 1.35;
}

.privacy-gate-jurisdiction strong {
  display: block;
  margin: 3px 0;
  color: #163a31;
  font-size: 14px;
  line-height: 1.3;
}

.privacy-gate-jurisdiction ul {
  margin: 0;
  padding-left: 18px;
  color: #34454d;
  font-size: 12px;
  line-height: 1.35;
}

.privacy-gate-jurisdiction li {
  margin: 0 0 4px;
}

.privacy-gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 30px 20px;
}

.privacy-gate-grid section {
  min-width: 0;
  border: 1px solid #dfe7eb;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.privacy-gate-grid h3 {
  margin: 0 0 7px;
  color: #1b3945;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

.privacy-gate-grid p {
  margin: 0;
  color: #465a63;
  font-size: 13px;
  line-height: 1.45;
}

.privacy-gate-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin: 0 30px 12px;
  padding: 14px;
  border: 1px solid #cfdce2;
  border-radius: 8px;
  background: #f8fbfa;
  color: #21343d;
  font-size: 14px;
  line-height: 1.45;
}

.privacy-gate-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0f6c56;
}

.privacy-gate-check-secondary {
  background: #fffdf7;
  border-color: #eadfbf;
}

.privacy-gate-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px 28px;
  border-top: 1px solid #e4eaed;
}

.privacy-gate-link {
  margin-right: auto;
  color: #0a5c8f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.privacy-gate-link:hover {
  text-decoration: underline;
}

.privacy-gate-primary,
.privacy-gate-secondary {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-gate-primary {
  border: 1px solid #0f6c56;
  background: #0f6c56;
  color: #ffffff;
}

.privacy-gate-primary:disabled {
  border-color: #bdcbd1;
  background: #d8e0e4;
  color: #6b7c84;
  cursor: not-allowed;
}

.privacy-gate-secondary {
  border: 1px solid #c9d6dc;
  background: #ffffff;
  color: #31454f;
}

.device-readiness-status {
  margin: 14px 30px 0;
  border: 1px solid #cfdce2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7fafb;
  color: #2d424b;
  font-size: 14px;
  line-height: 1.4;
}

.device-readiness-status[data-tone="success"] {
  border-color: #b8decf;
  background: #f1faf6;
  color: #174839;
}

.device-readiness-status[data-tone="warning"] {
  border-color: #ead09a;
  background: #fff9ea;
  color: #5d430c;
}

.device-readiness-status[data-tone="danger"] {
  border-color: #efb6b6;
  background: #fff4f4;
  color: #6d1f1f;
}

.device-readiness-list {
  display: grid;
  gap: 10px;
  padding: 16px 30px 6px;
}

.device-readiness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe7eb;
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
}

.device-readiness-row[data-state="granted"] {
  border-color: #c3e2d6;
  background: #f4fbf7;
}

.device-readiness-row[data-state="denied"],
.device-readiness-row[data-state="failed"] {
  border-color: #efc4b8;
  background: #fff7f4;
}

.device-readiness-row h3 {
  margin: 0 0 5px;
  color: #1b3945;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

.device-readiness-row p {
  margin: 0;
  color: #465a63;
  font-size: 13px;
  line-height: 1.4;
}

.device-readiness-meta {
  margin-top: 6px;
  color: #60727a;
  font-size: 12px;
  line-height: 1.35;
}

.device-readiness-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-readiness-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #ccd8de;
  background: #ffffff;
  color: #31454f;
  font-size: 12px;
  font-weight: 700;
}

.device-readiness-button {
  min-height: 34px;
  border: 1px solid #0f6c56;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: #0f6c56;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.device-readiness-button:disabled {
  border-color: #ccd8de;
  color: #75858c;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .privacy-gate {
    padding: 12px;
    align-items: flex-end;
  }

  .privacy-gate-dialog {
    max-height: 94vh;
  }

  .privacy-gate-header,
  .privacy-gate-copy,
  .privacy-gate-grid,
  .privacy-gate-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .privacy-gate-header,
  .privacy-gate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-gate-grid {
    grid-template-columns: 1fr;
  }

  .privacy-gate-jurisdiction {
    grid-template-columns: 1fr;
    margin-left: 18px;
    margin-right: 18px;
  }

  .privacy-gate-check {
    margin-left: 18px;
    margin-right: 18px;
  }

  .privacy-gate-link {
    margin-right: 0;
  }

  .device-readiness-status,
  .device-readiness-list {
    margin-left: 18px;
    margin-right: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .device-readiness-status {
    padding: 12px;
  }

  .device-readiness-row {
    grid-template-columns: 1fr;
  }

  .device-readiness-actions {
    justify-content: space-between;
  }
}
