/* ===== Policy card (inline) ===== */

.policy-card { margin-bottom: 16px; }

.policy-card .pe-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 32px 56px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}

.policy-card .pe-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.policy-card .pe-desc {
  margin-top: 6px;
  font-size: 13px;
}

.policy-card .pe-version {
  font-size: 12px;
  font-weight: 500;
}

/* The form body lives inside .pe-section panels */
.policy-card .pe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px 56px;
}
@media (max-width: 720px) {
  .policy-card .pe-grid { grid-template-columns: 1fr; }
}

.policy-card .pe-section {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.policy-card .pe-section-title {
  padding: 24px 56px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.policy-card .pe-section .form-group {
  padding: 28px 60px;
  margin: 0;
  border-left: 6px solid #ff5722;
}
.policy-card .pe-section .form-group:not(:last-child) {
  border-bottom: 1px solid #f0f1f3;
}

.policy-card .pe-section .form-group .label {
  flex: 0 0 320px;
  padding-left: 16px;
  padding-right: 32px;
  border-right: 1px solid #e5e7eb;
  margin-right: 24px;
}
.policy-card .pe-section .form-group .label .name {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 6px;
  display: inline-block;
}
.policy-card .pe-section .form-group .label .hint {
  padding-bottom: 4px;
  display: block;
}
.policy-card .pe-section .form-group input[type="checkbox"] {
  margin-right: 16px;
  transform: scale(1.25);
}

.policy-card .form-actions {
  margin: 0;
  padding: 32px 56px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Legacy edit page (full editor) reuses the same form structure */
.policy-editor-host { padding: 0; }
.policy-editor-host .pe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}
.policy-editor-host .pe-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
