/* Pawn to Professor v1.9.0 — Legal & Registration */

.v19-legal-checks {
  display:grid;
  gap:.45em;
  padding:.65em .7em;
  border:1px solid rgba(255,255,255,.20);
  border-radius:13px;
  background:rgba(255,255,255,.055);
}
.v19-legal-check {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:.5em;
  align-items:start;
}
.v19-legal-check input { width:auto; margin-top:.2em; }
.v19-legal-check button {
  border:0;
  background:transparent;
  color:var(--accent);
  text-decoration:underline;
  cursor:pointer;
  font:inherit;
  padding:.05em .15em;
}
.v19-legal-status {
  font-size:.78em;
  opacity:.82;
  line-height:1.35;
}
.v19-legal-warning {
  padding:.55em .65em;
  border-radius:10px;
  background:rgba(255,208,74,.12);
  border:1px solid rgba(255,208,74,.28);
  font-size:.82em;
}
.v19-legal-overlay {
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(3px);
}
.v19-legal-modal {
  width:min(900px,96vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  color:#1f2937;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.34);
}
.v19-legal-modal header {
  position:sticky;
  top:0;
  display:flex;
  justify-content:space-between;
  gap:1em;
  align-items:center;
  padding:1em 1.1em;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  z-index:2;
}
.v19-legal-modal h2 { margin:0; font-size:1.25em; color:#111827; }
.v19-legal-modal .v19-version { font-size:.8em; color:#6b7280; margin-top:.15em; }
.v19-legal-close {
  border:0;
  background:#f3f4f6;
  border-radius:999px;
  min-width:36px;
  min-height:36px;
  cursor:pointer;
  font-size:1.1em;
}
.v19-legal-document-text {
  padding:1.05em 1.2em 1.25em;
  white-space:pre-wrap;
  line-height:1.58;
  font-size:.96em;
}
.v19-legal-gate-actions {
  padding:0 1.2em 1.2em;
  display:grid;
  gap:.65em;
}
.v19-legal-gate-actions label {
  display:flex;
  gap:.55em;
  align-items:flex-start;
  font-weight:700;
}
.v19-legal-gate-actions input[type="checkbox"] { width:auto; margin-top:.2em; }
.v19-guardian-reaccept {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.6em;
}
.v19-legal-admin-intro {
  padding:.65em .75em;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  margin-bottom:.75em;
}
.v19-legal-admin-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75em;
}
.v19-legal-editor {
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  border-radius:14px;
  padding:.75em;
  display:grid;
  gap:.55em;
}
.v19-legal-editor h3 { margin:0; }
.v19-legal-editor textarea { min-height:250px; resize:vertical; }
.v19-legal-current {
  font-size:.8em;
  opacity:.82;
}
.v19-legal-editor-actions {
  display:flex;
  gap:.45em;
  flex-wrap:wrap;
}
.v19-legal-history {
  display:grid;
  gap:.35em;
  margin-top:.3em;
}
.v19-legal-version-row {
  display:grid;
  grid-template-columns:1fr auto;
  gap:.5em;
  align-items:center;
  padding:.45em .5em;
  border-radius:9px;
  background:rgba(255,255,255,.055);
}
.v19-legal-version-row small { display:block; opacity:.75; margin-top:.08em; }
.v19-published-pill {
  display:inline-flex;
  padding:.12em .4em;
  border-radius:999px;
  background:rgba(117,224,179,.18);
  border:1px solid rgba(117,224,179,.3);
  font-size:.72em;
  font-weight:900;
}
@media (max-width:900px) {
  .v19-legal-admin-grid { grid-template-columns:1fr; }
}
@media (max-width:650px) {
  .v19-guardian-reaccept { grid-template-columns:1fr; }
  .v19-legal-check { grid-template-columns:auto 1fr; }
  .v19-legal-check button { grid-column:2; justify-self:start; }
}
